Commit 8db002a9 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Change migration to add only weight colum

parent 84d866ba
class AddBoardFilterFields < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column :boards, :weight, :integer, index: true
add_reference :boards, :assignee, index: true
add_concurrent_foreign_key :boards, :users, column: :assignee_id, on_delete: :nullify
end
def down
remove_column :boards, :weight
remove_foreign_key :boards, column: :assignee_id
remove_reference :boards, :assignee
end
end
class AddWeightToBoards < ActiveRecord::Migration
DOWNTIME = false
disable_ddl_transaction!
def change
add_column :boards, :weight, :integer, index: true
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment