1. 21 9月, 2017 1 次提交
  2. 20 7月, 2017 1 次提交
  3. 02 7月, 2017 1 次提交
  4. 01 7月, 2017 1 次提交
  5. 22 4月, 2017 1 次提交
  6. 14 9月, 2016 1 次提交
  7. 03 9月, 2016 1 次提交
  8. 31 8月, 2016 1 次提交
    • S
      Override `respond_to_missing?` instead of `respond_to?` when possible · 03d3f036
      Sean Griffin 提交于
      This was almost every case where we are overriding `respond_to?` in a
      way that mirrors a parallel implementation of `method_missing`. There is
      one remaining case in Active Model that should probably do the same
      thing, but had a sufficiently strange implementation that I want to
      investigate it separately.
      
      Fixes #26333.
      03d3f036
  9. 07 8月, 2016 1 次提交
  10. 29 9月, 2015 1 次提交
  11. 31 8月, 2015 1 次提交
  12. 30 8月, 2015 2 次提交
  13. 29 8月, 2015 1 次提交
  14. 28 8月, 2015 2 次提交
  15. 25 8月, 2015 1 次提交
    • Y
      Make `change_column_default` to work · c90008a8
      yui-knk 提交于
      This is fix of #20018 which removes `change_column_default` from
      array, so `CommandRecorder#method_missing` catches
      `change_column_default` and @delegate's method is called.
      
      This PR
      
      * fix this bug
      * define `ReversibleAndIrreversibleMethods` const making clear
        which this array means to prevent these miss
      c90008a8
  16. 27 6月, 2015 1 次提交
    • P
      Add reversible syntax for change_column_default · a4128725
      Prem Sichanugrist 提交于
      Passing `:from` and `:to` to `change_column_default` makes this command
      reversible as user has defined its previous state.
      
      So, instead of having the migration command as:
      
          change_column_default(:posts, :state, "draft")
      
      They can write it as:
      
          change_column_default(:posts, :state, from: nil, to: "draft")
      a4128725
  17. 15 6月, 2015 1 次提交
    • Y
      make `remove_index :table, :column` reversible. · 0e928de3
      Yves Senn 提交于
      This used to raise a `IrreversibleMigration` error (since #10437).
      However since `remove_index :table, :column` is probably the most basic
      use-case we should make it reversible again.
      
      Conflicts:
      	activerecord/CHANGELOG.md
      0e928de3
  18. 12 6月, 2015 1 次提交
  19. 28 7月, 2014 1 次提交
  20. 27 6月, 2014 3 次提交
  21. 14 2月, 2014 1 次提交
  22. 08 1月, 2014 1 次提交
  23. 07 1月, 2014 1 次提交
    • N
      Make change_table use object of current database adapter · eb589fed
      Nishant Modak 提交于
        - Earlier, change_table was creating database-agnostic object.
        - After this change, it will create correct object based on current
          database adapter.
        - This will ensure that create_table and change_table will get same objects.
        - This makes update_table_definition method public and nodoc.
        - Fixes #13577 and #13503
      eb589fed
  24. 10 8月, 2013 1 次提交
  25. 07 5月, 2013 1 次提交
    • N
      raise IrreversibleMigration if no column given · 3771e4d5
      Neeraj Singh 提交于
      fixes #10419
      
      Following code should raise  IrreversibleMigration. But the code was
      failing since options is an array and not a hash.
      
      def change
        change_table :users do |t|
          t.remove_index [:name, :email]
        end
      end
      
      Fix was to check if the options is a Hash before operating on it.
      3771e4d5
  26. 23 12月, 2012 1 次提交
  27. 22 12月, 2012 10 次提交