1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-17 11:54:22 +01:00
fab-manager/db/migrate/20201027101809_create_payment_schedule_items.rb
2020-11-10 13:43:09 +01:00

16 lines
391 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.belongs_to :payment_schedule, foreign_key: true
t.belongs_to :invoice, foreign_key: true
t.timestamps
end
end
end