1. 08 2月, 2015 1 次提交
    • S
      rm `Type#number?` · 1492e83e
      Sean Griffin 提交于
      This predicate is only used in `query_attribute`, and is relatively easy
      to remove without adding a bunch of is a checks.
      1492e83e
  2. 05 2月, 2015 1 次提交
  3. 03 2月, 2015 1 次提交
  4. 31 1月, 2015 1 次提交
  5. 19 1月, 2015 1 次提交
  6. 04 1月, 2015 1 次提交
    • R
      Prefer `array?` rather than `array` · 3225ebfa
      Ryuta Kamizono 提交于
      Slightly refactoring `PostgreSQLColumn`. `array` should be readonly.
      `default_function` should be initialized by `super`. `sql_type` has been
      removed `[]`. Since we already choose to remove it we should not change.
      3225ebfa
  7. 23 12月, 2014 1 次提交
  8. 07 7月, 2014 1 次提交
    • S
      Remove the `text?` predicate from the type objects · 35592307
      Sean Griffin 提交于
      This was only used for uniqueness validations. The first usage was in
      conjunction with `limit`. Types which cast to string, but are not
      considered text cannot have a limit. The second case was only with an
      explicit `:case_sensitive => true` option given by the user.
      35592307
  9. 04 7月, 2014 1 次提交
  10. 18 6月, 2014 1 次提交
    • S
      Don't type cast the default on the column · 4d3e88fc
      Sean Griffin 提交于
      If we want to have type decorators mess with the attribute, but not the
      column, we need to stop type casting on the column. Where possible, we
      changed the tests to test the value of `column_defaults`, which is
      public API. `Column#default` is not.
      4d3e88fc
  11. 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
  12. 04 6月, 2014 1 次提交
  13. 03 6月, 2014 1 次提交
  14. 22 5月, 2014 1 次提交
  15. 21 5月, 2014 1 次提交