2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/rails/generators/invoicing/ledger_item/templates/migration.rb', line 2
def change
create_table :invoicing_ledger_items do |t|
t.references :sender
t.references :recipient
t.string :type
t.datetime :issue_date
t.string :currency, limit: 3, null: false
t.decimal :total_amount, precision: 20, scale: 4
t.decimal :tax_amount, precision: 20, scale: 4
t.string :status, limit: 20
t.string :identifier, limit: 50
t.string :description
t.datetime :period_start
t.datetime :period_end
t.string :uuid, limit: 40
t.datetime :due_date
t.timestamps
end
end
|