diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-11-07 19:06:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 19:06:44 +0100 |
commit | 1032f3994fdbd61c2f517057261ddc3559199b6b (patch) | |
tree | d039701515efc050dbf91124e8d32da2014498fb /db/migrate/20171107143332_add_memorial_to_accounts.rb | |
parent | cbbeec05be5cd0930a7be73bf673acc8d8105c12 (diff) |
Add ability to disable login and mark accounts as memorial (#5615)
Fix #5597
Diffstat (limited to 'db/migrate/20171107143332_add_memorial_to_accounts.rb')
-rw-r--r-- | db/migrate/20171107143332_add_memorial_to_accounts.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20171107143332_add_memorial_to_accounts.rb b/db/migrate/20171107143332_add_memorial_to_accounts.rb new file mode 100644 index 000000000..f3e012ce8 --- /dev/null +++ b/db/migrate/20171107143332_add_memorial_to_accounts.rb @@ -0,0 +1,15 @@ +require Rails.root.join('lib', 'mastodon', 'migration_helpers') + +class AddMemorialToAccounts < ActiveRecord::Migration[5.1] + include Mastodon::MigrationHelpers + + disable_ddl_transaction! + + def up + safety_assured { add_column_with_default :accounts, :memorial, :bool, default: false } + end + + def down + remove_column :accounts, :memorial + end +end |