Commit 8951898d authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Make Mysql happy with rollback

parent 06cb03b3
......@@ -15,6 +15,12 @@ class AddBoardFilterFields < ActiveRecord::Migration
end
def down
remove_columns :boards, :weight, :author_id, :assignee_id
remove_column :boards, :weight
remove_foreign_key :boards, column: :author_id
remove_reference :boards, :author
remove_foreign_key :boards, column: :assignee_id
remove_reference :boards, :assignee
end
end
......@@ -9,7 +9,6 @@ describe Board do
it { is_expected.to have_many(:board_filter_labels) }
it { is_expected.to have_many(:labels).through(:board_filter_labels) }
it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:delete_all) }
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