Skip to content
Snippets Groups Projects
Commit 16cffa97 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Move locked_at removal to post-deployment migration

parent 0640b3d1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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"
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment