Remove duplicate Spam flag type

This commit is contained in:
Robin Ward 2013-03-11 14:18:37 -04:00
parent 3b7ac014de
commit 1b808a54a4
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,9 @@
class RemoveExtraSpamRecord < ActiveRecord::Migration
def up
execute "UPDATE post_actions SET post_action_type_id = 7 where post_action_type_id = 8"
execute "DELETE FROM post_action_types WHERE id = 8"
end
def down
end
end

View File

@ -4644,4 +4644,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130221215017');
INSERT INTO schema_migrations (version) VALUES ('20130226015336');
INSERT INTO schema_migrations (version) VALUES ('20130306180148');
INSERT INTO schema_migrations (version) VALUES ('20130306180148');
INSERT INTO schema_migrations (version) VALUES ('20130311181327');