fix tests and typo bugs
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user