From 1b808a54a454b2599a0c8766b1b93d31d730f3d5 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 11 Mar 2013 14:18:37 -0400 Subject: [PATCH] Remove duplicate Spam flag type --- db/migrate/20130311181327_remove_extra_spam_record.rb | 9 +++++++++ db/structure.sql | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20130311181327_remove_extra_spam_record.rb 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