13 lines
234 B
Ruby
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
|