1. 27 6月, 2014 1 次提交
  2. 22 6月, 2014 1 次提交
  3. 19 6月, 2014 1 次提交
  4. 10 6月, 2014 1 次提交
    • S
      Rename `type_cast` to `type_cast_from_database` · d24e6407
      Sean Griffin 提交于
      In some cases there is a difference between the two, we should always
      be doing one or the other. For convenience, `type_cast` is still a
      private method on type, so new types that do not need different behavior
      don't need to implement two methods, but it has been moved to private so
      it cannot be used accidentally.
      d24e6407
  5. 06 6月, 2014 1 次提交
  6. 04 6月, 2014 1 次提交
    • S
      Collapse PG default extractoin of most types to single regex · 405fd22e
      Sean Griffin 提交于
      For any type that is represented as a string and then type cast, we do
      not need separate regular expressions for the various types. No function
      will match this regex. User defined types *should* match this, so that
      the type object can decide what to do with the value.
      405fd22e
  7. 03 6月, 2014 4 次提交
  8. 30 5月, 2014 1 次提交
  9. 27 5月, 2014 1 次提交
  10. 26 5月, 2014 2 次提交
  11. 24 5月, 2014 3 次提交
  12. 23 5月, 2014 6 次提交
  13. 21 5月, 2014 1 次提交
  14. 20 5月, 2014 2 次提交
    • S
      Have Postgres OID types inherit from general types · b2242d1f
      Sean Griffin 提交于
      Using general types where possible. Several more can go away once
      infinity gets figured out.
      b2242d1f
    • S
      Remove :timestamp column type · d0f8c46e
      Sean Griffin 提交于
      The `:timestamp` type for columns is unused. All database adapters treat
      them as the same database type. All code in `ActiveRecord` which changes
      its behavior based on the column's type acts the same in both cases.
      However, when the type is passed to code that checks for the `:datetime`
      type, but not `:timestamp` (such as XML serialization), the result is
      unexpected behavior.
      
      Existing schema definitions will continue to work, and the `timestamp`
      type is transparently aliased to `datetime`.
      d0f8c46e
  15. 19 5月, 2014 3 次提交
  16. 15 5月, 2014 1 次提交
  17. 14 5月, 2014 4 次提交
  18. 13 5月, 2014 1 次提交
  19. 18 4月, 2014 1 次提交
  20. 11 4月, 2014 2 次提交
  21. 10 4月, 2014 1 次提交
  22. 04 4月, 2014 1 次提交
    • Y
      PostgreSQL and SQLite, remove varchar limit. [Vladimir Sazhin & Toms Mikoss & Yves Senn] · f4226c3a
      Yves Senn 提交于
      There is no reason for the PG adapter to have a default limit of 255 on :string
      columns. See this snippet from the PG docs:
      
          Tip: There is no performance difference among these three types, apart
          from increased storage space when using the blank-padded type, and a
          few extra CPU cycles to check the length when storing into a
          length-constrained column. While character(n) has performance
          advantages in some other database systems, there is no such advantage
          in PostgreSQL; in fact character(n) is usually the slowest of the
          three because of its additional storage costs. In most situations text
          or character varying should be used instead.
      f4226c3a