aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration/change_table_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Change the default `null` value for timestampsSean Griffin2014-08-121-2/+2
| | | | | | | As per discussion, this changes the model generators to specify `null: false` for timestamp columns. A warning is now emitted if `timestamps` is called without a `null` option specified, so we can safely change the behavior when no option is specified in Rails 5.
* Allow to specify a type for foreign key column in migrationsAndrey Novikov2014-07-221-0/+14
| | | | [Andrey Novikov & Łukasz Sarnacki]
* Use teardown helper method.Guo Xiang Tan2014-03-141-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.
* Change all `MiniTest` to `Minitest` since, `MiniTest` namespace has been ↵Vipul A M2013-12-181-1/+1
| | | | | | renamed to `Minitest` Ref: https://github.com/seattlerb/minitest/blob/master/History.txt
* Add active_support/testing/autorunRafael Mendonça França2012-12-311-0/+1
| | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
* Differentiate between remove_column and remove_columns. Make remove_column ↵Marc-Andre Lafortune2012-12-211-2/+2
| | | | | | reversible. [#8267]
* Simplify change_table and avoid duplicated logicMarc-Andre Lafortune2012-12-211-26/+5
|
* Add rename_index to change_table.Jarek Radosz2012-11-191-0/+7
|
* Refactor references schema definitionsAleksey Magusev2012-07-031-16/+12
|
* port some mocha to minitest/mockAaron Patterson2012-05-181-0/+221