class CreatePCommercials < ActiveRecord::Migration[6.0]
  def change
    create_table :p_commercials do |t|
      t.boolean :enabled, :default => true
      t.string       :code
      t.string       :organisation
      t.string       :civilite
      t.string       :name
      t.string       :firstname
      t.string :address_number
      t.string :address_1
      t.string :address_2
      t.string :address_3
      t.string :cp
      t.string :city
      t.string :country
      t.string       :phone
      t.string       :email
      t.string       :token
      t.integer :p_commercial_cat_id
      t.string :ac_display_name
      t.string :cc_display_name
      t.date :start_at
      t.date :stop_at
      t.text :secteur
      t.boolean :avenant
      t.date :birth
      t.timestamps
    end
  end
end
