mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
14 lines
326 B
Ruby
14 lines
326 B
Ruby
class CreateInvoiceItems < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :invoice_items do |t|
|
|
t.integer :invoice_id
|
|
# t.string :product_code
|
|
t.string :description, null: false # e-invoice
|
|
t.string :unit
|
|
t.integer :amount
|
|
t.decimal :price
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|