- 22 4月, 2017 1 次提交
-
-
由 Ryuta Kamizono 提交于
Follow up of 03d3f036. Some of `respond_to?` were replaced to `respond_to_missing?` in 03d3f036. But the visibility is still public. It should be private.
-
- 14 9月, 2016 1 次提交
-
-
由 Ryuta Kamizono 提交于
All indentation was normalized by rubocop auto-correct at 80e66cc4. But comments was still kept absolute position. This commit aligns comments with method definitions for consistency.
-
- 03 9月, 2016 1 次提交
-
-
由 Ryuta Kamizono 提交于
All indentation was normalized by rubocop auto-correct at 80e66cc4. But heredocs was still kept absolute position. This commit aligns heredocs indentation for consistency.
-
- 31 8月, 2016 1 次提交
-
-
由 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.
-
- 07 8月, 2016 1 次提交
-
-
由 Xavier Noria 提交于
-
- 29 9月, 2015 1 次提交
-
-
由 Gaurav Sharma 提交于
-
- 31 8月, 2015 1 次提交
-
-
由 yui-knk 提交于
* Documentations and comments about what methods `Migration#change` can reverse is out of date. For example `change_column_default` is now reversible by this [commit](https://github.com/rails/rails/pull/20018). * Comments about `CommandRecorder` dose not match with Rails Guide. For example `add_foreign_key` is listed only on Rails Guide.
-
- 30 8月, 2015 2 次提交
- 29 8月, 2015 1 次提交
-
-
由 yui-knk 提交于
-
- 28 8月, 2015 2 次提交
- 25 8月, 2015 1 次提交
-
-
由 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
-
- 27 6月, 2015 1 次提交
-
-
由 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")
-
- 15 6月, 2015 1 次提交
-
-
由 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
-
- 12 6月, 2015 1 次提交
-
-
由 Aster Ryan 提交于
-
- 28 7月, 2014 1 次提交
-
-
由 Tom Kadwill 提交于
-
- 27 6月, 2014 3 次提交
- 14 2月, 2014 1 次提交
-
-
由 Hubert Dąbrowski 提交于
Previously when reverting a migration which added a named index it would instead drop a corresponding index with matching columns but without a name.
-
- 08 1月, 2014 1 次提交
-
-
由 Yves Senn 提交于
Closes #13623.
-
- 07 1月, 2014 1 次提交
-
-
由 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
-
- 10 8月, 2013 1 次提交
-
-
由 Eric Tipton 提交于
If 'enable_extension' is used in a migration's 'change' method, use 'disable_extension' on down migration (and vice-versa).
-
- 07 5月, 2013 1 次提交
-
-
由 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.
-
- 23 12月, 2012 1 次提交
-
-
由 Marc-Andre Lafortune 提交于
* Fix Migration#reversible by not using `transaction`. * Adapt mysql adapter to updated api for remove_column * Update test after aedcd683
-
- 22 12月, 2012 11 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Marc-Andre Lafortune 提交于
[#8267]
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
[#8267]
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
- 04 7月, 2012 1 次提交
-
-
由 Aleksey Magusev 提交于
-
- 28 1月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 04 1月, 2012 1 次提交
-
-
由 kennyj 提交于
-