diff --git a/db/migrate/20160615165447_rename_num_flags_to_block_new_user.rb b/db/migrate/20160615165447_rename_num_flags_to_block_new_user.rb new file mode 100644 index 000000000..ddcfd985d --- /dev/null +++ b/db/migrate/20160615165447_rename_num_flags_to_block_new_user.rb @@ -0,0 +1,9 @@ +class RenameNumFlagsToBlockNewUser < ActiveRecord::Migration + def up + execute "update site_settings set name = 'num_spam_flags_to_block_new_user' where name = 'num_flags_to_block_new_user'" + end + + def down + execute "update site_settings set name = 'num_flags_to_block_new_user' where name = 'num_spam_flags_to_block_new_user'" + end +end