diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-12-12 12:11:17 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-12-12 04:11:17 +0100 |
commit | 14c4a33cd9bfc1212cb362897272e5ea7d1529e5 (patch) | |
tree | 0b28579dfb137e529c7f7c962236941b3e341b22 /db/migrate | |
parent | 30d2ea03b05ed3efb4ad8f21cab343108d3699ac (diff) |
Change account_id non-nullable in lists (#5979)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20171201000000_change_account_id_nonnullable_in_lists.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20171201000000_change_account_id_nonnullable_in_lists.rb b/db/migrate/20171201000000_change_account_id_nonnullable_in_lists.rb new file mode 100644 index 000000000..120f74402 --- /dev/null +++ b/db/migrate/20171201000000_change_account_id_nonnullable_in_lists.rb @@ -0,0 +1,7 @@ +require Rails.root.join('lib', 'mastodon', 'migration_helpers') + +class ChangeAccountIdNonnullableInLists < ActiveRecord::Migration[5.1] + def change + change_column_null :lists, :account_id, false + end +end |