demarches-normaliennes/db/migrate/20151103091603_create_champs.rb

10 lines
262 B
Ruby
Raw Normal View History

2015-11-03 10:48:40 +01:00
class CreateChamps < ActiveRecord::Migration
def change
create_table :champs do |t|
t.string :value
end
add_reference :champs, :type_de_champs, references: :types_de_champs
add_reference :champs, :dossier, references: :dossiers
end
end