diff --git a/db/migrate/20130311181327_remove_extra_spam_record.rb b/db/migrate/20130311181327_remove_extra_spam_record.rb new file mode 100644 index 00000000000..7b326476444 --- /dev/null +++ b/db/migrate/20130311181327_remove_extra_spam_record.rb @@ -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 diff --git a/db/structure.sql b/db/structure.sql index 09a4e77d22a..7e0b687c34b 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20130306180148'); + +INSERT INTO schema_migrations (version) VALUES ('20130311181327'); \ No newline at end of file