qi6_app/db/migrate/20190210164311_create_p_remises.rb
2019-05-17 12:30:45 +02:00

13 lines
349 B
Ruby

class CreatePRemises < ActiveRecord::Migration[6.0]
def change
create_table :p_remises do |t|
t.date :date
t.boolean :validated, :default => false
t.references :p_payment_type, index: true, foreign_key: true
t.references :p_bank_account, index: true, foreign_key: true
t.timestamps null: false
end
end
end