pic_vert_app/db/migrate/20141209215455_create_authors.rb
2014-12-09 23:26:33 +01:00

13 lines
234 B
Ruby

class CreateAuthors < ActiveRecord::Migration
def change
create_table :authors do |t|
t.string :name
t.text :bio
t.references :image_file, index: true
t.string :slug
t.timestamps
end
end
end