This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20210621190857_create_v_bdas.rb
2021-08-23 10:26:02 +02:00

21 lines
538 B
Ruby

class CreateVBdas < ActiveRecord::Migration[6.0]
def change
create_table :v_bdas do |t|
t.string :token
t.date :date
t.decimal :amount, :precision => 14, :scale => 2
t.decimal :seuil, :precision => 14, :scale => 2
t.boolean :used, :default => false
t.date :end_at
t.references :volume_periodique, foreign_key: true
t.integer :v_contact_id
t.integer :societe_id
t.integer :societe_use_id
t.text :comment
t.string :bda_type
t.timestamps
end
end
end