fix tests and typo bugs

This commit is contained in:
albert
2013-03-22 18:54:37 -04:00
parent ec50911a52
commit a4b67fa072
9 changed files with 53 additions and 68 deletions

View File

@@ -1,13 +0,0 @@
class RemoveUpScoreFromPosts < ActiveRecord::Migration
def up
execute "set statement_timeout = 0"
remove_column :posts, :up_score
remove_column :posts, :down_score
end
def down
execute "set statement_timeout = 0"
add_column :posts, :up_score, :integer
add_column :posts, :up_score, :integer
end
end

View File

@@ -2283,7 +2283,9 @@ CREATE TABLE posts (
image_height integer NOT NULL,
parent_id integer,
has_children boolean DEFAULT false NOT NULL,
is_banned boolean DEFAULT false NOT NULL
is_banned boolean DEFAULT false NOT NULL,
up_score integer,
down_score integer
);