Add Rails release to ActiveRecord::Migration
This commit is contained in:
parent
44a198c7bc
commit
74531f90c7
108 changed files with 108 additions and 108 deletions
|
|
@ -1,4 +1,4 @@
|
|||
class ChangeInvoiceRelation < ActiveRecord::Migration
|
||||
class ChangeInvoiceRelation < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
add_column :deliveries, :invoice_id, :integer
|
||||
execute 'UPDATE deliveries SET invoice_id = (SELECT id FROM invoices WHERE delivery_id = deliveries.id)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue