removes children_count from Comment

This commit is contained in:
Juanjo Bazán
2015-09-03 16:33:29 +02:00
parent b7518fe98f
commit bf017a8557
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class RemoveChildrenCountFromComments < ActiveRecord::Migration
def change
remove_column :comments, :children_count, :integer, default: 0
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150902120006) do
ActiveRecord::Schema.define(version: 20150903142924) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -64,7 +64,6 @@ ActiveRecord::Schema.define(version: 20150902120006) do
t.integer "user_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "children_count", default: 0
t.datetime "hidden_at"
t.integer "flags_count", default: 0
t.datetime "ignored_flag_at"