1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

11 commits

Author SHA1 Message Date
Xavier Noria
80e66cc4d9 normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
Yves Senn
5e4df5c674 tests, use if_exists: true instead of rescue nil. 2015-09-22 17:28:54 +02:00
Akira Matsuda
17b837b3f1 Bring original puts back after finishing tests 2014-08-29 10:34:26 +09:00
Sean Griffin
ea3ba34506 Change the default null value for timestamps
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.
2014-08-12 14:40:11 -06:00
Carlos Antonio da Silva
7e10f38880 Initialize accessors to remove some warnings in Ruby 2.0 2012-11-19 12:52:19 -02:00
Aleksey Magusev
cfb24586b8 Add references schema statements
Examples:

    add_reference :products, :supplier, polymorphic: true, index: true
    remove_reference :products, :user

`add_belongs_to` and `remove_belongs_to` are
acceptable.
2012-07-03 13:25:25 -03:00
Aleksey Magusev
0fb13277aa Refactor migration test_helper
and create_join_table_test
2012-07-01 19:53:24 +04:00
Aaron Patterson
536433845d silencing migrator tests, refactoring the migration test helper 2012-01-16 11:21:20 -08:00
Aaron Patterson
145ad7b6aa adding a test class for table renaming 2012-01-13 14:33:57 -08:00
Aaron Patterson
e6f796031f moving more renaming tests to the proper test case 2012-01-13 14:33:56 -08:00
Aaron Patterson
cd930c8515 moving rename column tests to their own class 2012-01-13 14:33:56 -08:00