pic_vert_app/db/migrate/20180319211920_create_plumes.rb
2018-03-20 17:24:52 +01:00

21 lines
520 B
Ruby

class CreatePlumes < ActiveRecord::Migration
def change
create_table :plumes do |t|
t.string :title
t.string :number
t.string :p_version
t.references :image_file#, index: true
t.references :couv_image_file
t.string :credits
t.integer :edito_plume_article_id
t.integer :dossier_plume_article_id
t.integer :other_plume_article_id
t.string :redaction_credits
t.boolean :enabled
t.datetime :enabled_at
t.timestamps
end
end
end