mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
40c78974b8
TODO: debug with tests, refactor subscription:pay_and_save on the same template
18 lines
455 B
Ruby
18 lines
455 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Save each due dates for PaymentSchedules
|
|
class CreatePaymentScheduleItems < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :payment_schedule_items do |t|
|
|
t.integer :amount
|
|
t.datetime :due_date
|
|
t.jsonb :details, default: '{}'
|
|
t.belongs_to :payment_schedule, foreign_key: true
|
|
t.belongs_to :invoice, foreign_key: true
|
|
t.string :footprint
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|