add groupo order invoice and relation to group order
This commit is contained in:
parent
1f6598c144
commit
0fa696cfdd
4 changed files with 112 additions and 0 deletions
13
db/migrate/20211208142719_create_group_order_invoices.rb
Normal file
13
db/migrate/20211208142719_create_group_order_invoices.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class CreateGroupOrderInvoices < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :group_order_invoices do |t|
|
||||
t.integer :group_order_id
|
||||
t.bigint :invoice_number, unique: true, limit: 8
|
||||
t.date :invoice_date
|
||||
t.string :payment_method
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :group_order_invoices, :group_order_id, unique: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue