From 8d02918618937e0e752517a670cccbbfb42128b5 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Mar 2013 07:57:32 -0700 Subject: [PATCH] remove up/down score from posts --- .../20130321144736_remove_up_score_from_posts.rb | 10 ++++++++++ db/structure.sql | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20130321144736_remove_up_score_from_posts.rb diff --git a/db/migrate/20130321144736_remove_up_score_from_posts.rb b/db/migrate/20130321144736_remove_up_score_from_posts.rb new file mode 100644 index 000000000..cdb0c3be8 --- /dev/null +++ b/db/migrate/20130321144736_remove_up_score_from_posts.rb @@ -0,0 +1,10 @@ +class RemoveUpScoreFromPosts < ActiveRecord::Migration + def up + execute "set statement_timeout = 0" + remove_column :posts, :up_score + remove_column :posts, :down_score + end + + def down + end +end diff --git a/db/structure.sql b/db/structure.sql index 72ca901d6..9aa6e6907 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -6261,4 +6261,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130318031705'); INSERT INTO schema_migrations (version) VALUES ('20130318231740'); -INSERT INTO schema_migrations (version) VALUES ('20130320070700'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20130320070700'); + +INSERT INTO schema_migrations (version) VALUES ('20130321144736'); \ No newline at end of file