Move locked_at removal to post-deployment migration
This commit is contained in:
parent
0640b3d1d8
commit
16cffa97f6
|
@ -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"
|
||||
|
|
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue