rswag/test-app/db/migrate/20160218212104_create_blogs.rb
2017-05-11 05:06:46 +04:30

12 lines
196 B
Ruby

class CreateBlogs < ActiveRecord::Migration
def change
create_table :blogs do |t|
t.string :title
t.text :content
t.string :thumbnail
t.timestamps
end
end
end