add table Champs

This commit is contained in:
Xavier J 2015-11-03 10:48:40 +01:00
parent 2050465a75
commit 56eccf55df
10 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,9 @@
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