10 lines
262 B
Ruby
10 lines
262 B
Ruby
|
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
|