1. 21 2月, 2015 3 次提交
  2. 20 2月, 2015 3 次提交
  3. 19 2月, 2015 4 次提交
  4. 18 2月, 2015 10 次提交
  5. 17 2月, 2015 1 次提交
  6. 16 2月, 2015 1 次提交
    • S
      Add a global type registry, used to lookup and register types · 8c837e5f
      Sean Griffin 提交于
      As per previous discussions, we want to give users the ability to
      reference their own types with symbols, instead of having to pass the
      object manually. This adds the class that will be used to do so.
      
          ActiveRecord::Type.register(:money, MyMoneyType)
      8c837e5f
  7. 14 2月, 2015 6 次提交
  8. 13 2月, 2015 3 次提交
  9. 12 2月, 2015 7 次提交
    • Y
      get rid of transaction warning when running PG tests. · 9e9a3c53
      Yves Senn 提交于
      This finally removes the warning "WARNING:  there is no transaction in progress"
      when running Active Record tests using PostgreSQL.
      9e9a3c53
    • Y
      pg tests, be clear about the missing type that causes a test skip. · efeaa01e
      Yves Senn 提交于
      Also removed some cruft in the `setup` and `teardown` methods.
      efeaa01e
    • Y
      tests, remove unused requires. · d93aae9a
      Yves Senn 提交于
      "active_support/testing/stream" is already required in `test_case.rb`.
      Furthermore the test "test/cases/migration_test.rb" could no longer be executed
      directly.
      d93aae9a
    • R
      Allow `:precision` option for time type columns · 1502caef
      Ryuta Kamizono 提交于
      1502caef
    • S
      Refactor enum to be defined in terms of the attributes API · c51f9b61
      Sean Griffin 提交于
      In addition to cleaning up the implementation, this allows type casting
      behavior to be applied consistently everywhere. (#where for example). A
      good example of this was the previous need for handling value to key
      conversion in the setter, because the number had to be passed to `where`
      directly. This is no longer required, since we can just pass the string
      along to where. (It's left around for backwards compat)
      
      Fixes #18387
      c51f9b61
    • S
      `current_scope` shouldn't pollute sibling STI classes · 5e0b555b
      Sean Griffin 提交于
      It looks like the only reason `current_scope` was thread local on
      `base_class` instead of `self` is to ensure that when we call a named
      scope created with a proc on the parent class, it correctly uses the
      default scope of the subclass. The reason this wasn't happening was
      because the proc captured `self` as the parent class, and we're not
      actually defining a real method. Using `instance_exec` fixes the
      problem.
      
      Fixes #18806
      5e0b555b
    • S
      Remove the SQLite3 Binary subclass · c9cc1f47
      Sean Griffin 提交于
      As far as I can tell, the original reason that this behavior was added
      has been sufficiently resolved elsewhere, as we no longer remove the
      encoding of strings coming out of the database.
      c9cc1f47
  10. 11 2月, 2015 2 次提交