Remove related content positive/negative columsn from migrations & schema
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
class AddRelatedContentsPositiveAndNegativeScore < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :related_contents, :flags_count
|
||||
|
||||
add_column :related_contents, :positive_score, :integer, default: 1
|
||||
add_column :related_contents, :negative_score, :integer, default: 0
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class RemoveRelatedContentsFlagsCount < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :related_contents, :flags_count
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user