1. 29 2月, 2016 1 次提交
  2. 01 2月, 2016 2 次提交
  3. 14 1月, 2016 1 次提交
  4. 17 12月, 2015 1 次提交
    • S
      Fix test failure on Windows · f0f4f543
      Sean Griffin 提交于
      When this test was run on Windows, the database file would still be in
      use, and `File.unlink` would fail. This would cause the temp directory to
      be unable to be removed, and error out. By disconnecting the connection
      when finished, we can avoid this error.
      f0f4f543
  5. 09 11月, 2015 1 次提交
    • Y
      Deprecate `#table_exists?`, `#tables` and passing arguments to `#talbes` · 7429633b
      yui-knk 提交于
      Reported on #21509, how views is treated by `#tables` are differ
      by each adapters. To fix this different behavior, after Rails 5.0
      is released, deprecate `#tables`.
      
      And `#table_exists?` would check both tables and views.
      To make their behavior consistent with `#tables`, after Rails 5.0
      is released, deprecate `#table_exists?`.
      7429633b
  6. 22 10月, 2015 1 次提交
    • R
      Remove `#tables` extra args again · edfb738b
      Ryuta Kamizono 提交于
      This issue was resolved by #21687 already. But re-add args by #18856.
      `#tables` extra args was only using by `#table_exists?`. This is for
      internal API. This commit will remove these extra args again.
      edfb738b
  7. 20 9月, 2015 1 次提交
  8. 26 8月, 2015 1 次提交
  9. 11 6月, 2015 1 次提交
  10. 28 5月, 2015 1 次提交
  11. 17 3月, 2015 1 次提交
    • B
      Closes rails/rails#18864: Renaming transactional fixtures to transactional tests · 09658635
      Brandon Weiss 提交于
      I’m renaming all instances of `use_transcational_fixtures` to
      `use_transactional_tests` and “transactional fixtures” to
      “transactional tests”.
      
      I’m deprecating `use_transactional_fixtures=`. So anyone who is
      explicitly setting this will get a warning telling them to use
      `use_transactional_tests=` instead.
      
      I’m maintaining backwards compatibility—both forms will work.
      `use_transactional_tests` will check to see if
      `use_transactional_fixtures` is set and use that, otherwise it will use
      itself. But because `use_transactional_tests` is a class attribute
      (created with `class_attribute`) this requires a little bit of hoop
      jumping. The writer method that `class_attribute` generates defines a
      new reader method that return the value being set. Which means we can’t
      set the default of `true` using `use_transactional_tests=` as was done
      previously because that won’t take into account anyone using
      `use_transactional_fixtures`. Instead I defined the reader method
      manually and it checks `use_transactional_fixtures`. If it was set then
      it should be used, otherwise it should return the default, which is
      `true`. If someone uses `use_transactional_tests=` then it will
      overwrite the backwards-compatible method with whatever they set.
      09658635
  12. 18 2月, 2015 3 次提交
  13. 03 2月, 2015 1 次提交
  14. 29 1月, 2015 1 次提交
  15. 28 1月, 2015 1 次提交
    • S
      Remove Relation#bind_params · b06f64c3
      Sean Griffin 提交于
      `bound_attributes` is now used universally across the board, removing
      the need for the conversion layer. These changes are mostly mechanical,
      with the exception of the log subscriber. Additional, we had to
      implement `hash` on the attribute objects, so they could be used as a
      key for query caching.
      b06f64c3
  16. 11 1月, 2015 1 次提交
  17. 02 1月, 2015 2 次提交
  18. 31 12月, 2014 1 次提交
  19. 27 12月, 2014 1 次提交
  20. 29 11月, 2014 1 次提交
  21. 18 11月, 2014 2 次提交
  22. 14 11月, 2014 1 次提交
  23. 11 7月, 2014 1 次提交
  24. 07 7月, 2014 1 次提交
  25. 06 7月, 2014 1 次提交
  26. 29 6月, 2014 1 次提交
    • S
      Always pass a column with a type object to quote · b404613c
      Sean Griffin 提交于
      The only case where we got a column that was not `nil`, but did not
      respond to `cast_type` was when type casting the default value during
      schema creation. We can look up the cast type, and add that object to
      the column definition. Will allow us to consistently rely on the type
      objects for type casting in all directions.
      b404613c
  27. 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
  28. 28 5月, 2014 1 次提交
  29. 27 5月, 2014 1 次提交
  30. 24 5月, 2014 1 次提交
    • S
      Remove `Column#primary` · 05dd3df3
      Sean Griffin 提交于
      It appears to have been used at some point in the past, but is no longer
      used in any meaningful way. Whether a column is considered primary is
      a property of the model, not the schema/column. This also removes the
      need for yet another layer of caching of the model's schema, and we can
      leave that to the schema cache.
      05dd3df3
  31. 19 5月, 2014 1 次提交
    • S
      Delegate `Column#type` to the injected type object · 0b682e4b
      Sean Griffin 提交于
      The decision to wrap type registrations in a proc was made for two
      reasons.
      
      1. Some cases need to make an additional decision based on the type
        (e.g. a `Decimal` with a 0 scale)
      2. Aliased types are automatically updated if they type they point to is
        updated later. If a user or another adapter decides to change the
        object used for `decimal` columns, `numeric`, and `number` will
        automatically point to the new type, without having to track what
        types are aliased explicitly.
      
      Everything else here should be pretty straightforward. PostgreSQL ranges
      had to change slightly, since the `simplified_type` method is gone.
      0b682e4b
  32. 18 5月, 2014 1 次提交
    • S
      Add a type object to Column constructor · 4bd5dffc
      Sean Griffin 提交于
      Part of #15134. In order to perform typecasting polymorphically, we need
      to add another argument to the constructor. The order was chosen to
      match the `oid_type` on `PostgreSQLColumn`.
      4bd5dffc
  33. 03 5月, 2014 1 次提交
  34. 10 4月, 2014 1 次提交
  35. 02 4月, 2014 1 次提交
    • M
      Revise 'sqlite3:' URL handling for smoother upgrades · f846828d
      Matthew Draper 提交于
      Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll
      change to the absolute-path interpretation in 4.2.
      
      The current "correct" spellings for in-memory, relative, and absolute
      URLs, respectively, are:
      
          sqlite3::memory:
          sqlite3:relative/path
          sqlite3:/full/path
      
      Substantially reverses/defers fbb79b51.
      Uncovered by @guilleiguaran while investigating #14495, though that
      sounds like a different issue.
      f846828d