demarches-normaliennes/db/migrate/20151211093833_create_rna_information_table.rb

15 lines
369 B
Ruby
Raw Normal View History

2015-12-11 11:05:38 +01:00
class CreateRNAInformationTable < ActiveRecord::Migration
def change
create_table :rna_informations do |t|
t.string :association_id
t.string :titre
t.text :objet
t.date :date_creation
t.date :date_declaration
t.date :date_publication
end
add_reference :rna_informations, :entreprise, references: :entreprise
end
end