pollen_app/db/migrate/20200413212227_create_circuits.rb
Nicolas Bally 120e9803eb initial
2020-04-28 14:51:42 +02:00

34 lines
814 B
Ruby

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