Move locked_at removal to post-deployment migration

This commit is contained in:
Oswaldo Ferreira 2017-08-07 16:34:57 -03:00
parent 0640b3d1d8
commit 16cffa97f6
3 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ class MergeRequest < ActiveRecord::Base
include CreatedAtFilterable
ignore_column :position
ignore_column :locked_at
belongs_to :target_project, class_name: "Project"
belongs_to :source_project, class_name: "Project"

View File

@ -6,6 +6,6 @@ class RemoveLockedAtColumnFromMergeRequests < ActiveRecord::Migration
end
def down
add_column :merge_requests, :locked_at, :datetime_with_timezone
# nothing to do to recover the values
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: 20170803130232) do
ActiveRecord::Schema.define(version: 20170807160457) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"