21 lines
520 B
Ruby
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
|