1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Ryuta Kamizono c92757fb68
Fix change_column to drop default with null: false
Currently `change_column` cannot drop default if `null: false` is
specified at the same time. This change fixes the issue.

```ruby
  # cannot drop default
  change_column "tests", "contributor", :boolean, default: nil, null: false

  # we need the following workaround currently
  change_column "tests", "contributor", :boolean, null: false
  change_column "tests", "contributor", :boolean, default: nil
```

Closes #26582
2017-02-26 00:23:04 -07:00
..
active_record/connection_adapters Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
assets Use YAML to serialize schema cache 2016-11-27 22:09:58 -05:00
cases Fix change_column to drop default with null: false 2017-02-26 00:23:04 -07:00
fixtures Correct spelling 2017-02-05 19:00:18 -06:00
migrations modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
models Fix inspection behavior when the :id column is not primary key 2017-02-09 01:57:50 +09:00
schema Correctly dump native timestamp types for MySQL 2017-02-23 12:51:49 +09:00
support fix #create_fixtures when equal table names in different databases 2016-12-21 11:09:29 +01:00
.gitignore
config.example.yml Fix tests for prepared_statements: false and queries hitting #select_all 2016-11-19 21:52:52 +05:30
config.rb