Kir Shatrov
831be98f9a
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590
, reversing
changes made to afb66a5a59
.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
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