Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make `remove_index :table, :column` reversible. | Yves Senn | 2015-06-15 | 1 | -6/+10 |
| | | | | | | | | | 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 | ||||
* | Silence another test that runs migrations | Akira Matsuda | 2014-08-29 | 1 | -0/+5 |
| | |||||
* | Use teardown helper method. | Guo Xiang Tan | 2014-03-14 | 1 | -1/+1 |
| | | | | | | | | Follow-Up to https://github.com/rails/rails/pull/14348 Ensure that SQLCounter.clear_log is called after each test. This is a step to prevent side effects when running tests. This will allow us to run them in random order. | ||||
* | Skip test_migrate_revert_add_index_with_name if databases | Yasuo Honda | 2014-02-25 | 1 | -10/+13 |
| | | | | do not allow to create duplicate indexes on the same columns | ||||
* | Drop the correct index after reverting a migration | Hubert Dąbrowski | 2014-02-13 | 1 | -0/+28 |
| | | | | | | Previously when reverting a migration which added a named index it would instead drop a corresponding index with matching columns but without a name. | ||||
* | fix failing test caused by 3771e4d511 | Neeraj Singh | 2013-05-06 | 1 | -2/+2 |
| | |||||
* | raise IrreversibleMigration if no column given | Neeraj Singh | 2013-05-06 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | 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. | ||||
* | Fixes for PR [#8267] | Marc-Andre Lafortune | 2012-12-22 | 1 | -2/+4 |
| | | | | | | | | * Fix Migration#reversible by not using `transaction`. * Adapt mysql adapter to updated api for remove_column * Update test after aedcd683684d08eaf30623a4b48ce31a31426372 | ||||
* | Make drop_table reversible [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -3/+3 |
| | |||||
* | Add Migration#reversible for reversible data operations [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+39 |
| | |||||
* | Allow revert of whole migration [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+63 |
| | |||||
* | Allow reverting of migration commands with Migration#revert [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+23 |
| | |||||
* | migrate(:down) method with table_name_prefix | kennyj | 2012-01-11 | 1 | -0/+12 |
| | |||||
* | Ensure that .up and .down work as well. | Christopher Meiklejohn | 2011-08-02 | 1 | -2/+13 |
| | |||||
* | Support backwards compatible interface for migration down/up with rails 3.0.x. | Christopher Meiklejohn | 2011-08-02 | 1 | -0/+24 |
| | |||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | fisting typeo, thanks @vinibaggio | Aaron Patterson | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | fisting my spelling errors | Aaron Patterson | 2010-11-19 | 1 | -0/+57 |