class CreateCircuits < ActiveRecord::Migration[6.0] def change create_table :circuits do |t| t.integer :past_id t.string :name t.string :website t.text :description t.string :person_civilite t.string :person_name t.string :person_firstname t.string :person_fonction t.string :email t.string :email2 t.string :tel t.string :portable t.string :address2 t.string :address3 t.string :cp t.string :city t.string :country, :default => "FR" t.string :longueur t.string :largeur t.string :nbr_courbes t.string :longueur_ligne t.string :facebook t.integer :image_file_id t.integer :logo_id t.references :admin, foreign_key: true t.timestamps end end end