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
|
||||||
@@ -862,8 +862,6 @@ ActiveRecord::Schema.define(version: 20171219111046) do
|
|||||||
t.integer "related_content_id"
|
t.integer "related_content_id"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.integer "positive_score", default: 1
|
|
||||||
t.integer "negative_score", default: 0
|
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "related_contents", ["child_relationable_type", "child_relationable_id"], name: "index_related_contents_on_child_relationable", using: :btree
|
add_index "related_contents", ["child_relationable_type", "child_relationable_id"], name: "index_related_contents_on_child_relationable", using: :btree
|
||||||
|
|||||||
Reference in New Issue
Block a user