migration for quote schema update

This commit is contained in:
2458773093
2019-07-29 15:24:37 +03:00
parent 1bfbb53c14
commit 3e5b9a994f
2 changed files with 16 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
class AddQuoteIdToStatuses < ActiveRecord::Migration[5.2]
def change
safety_assured {
add_reference :statuses, :quote_of, foreign_key: { on_delete: :nullify, to_table: :statuses }
}
end
end