wblog/db/migrate/20160420082319_create_posts.rb

12 lines
206 B
Ruby
Raw Permalink Normal View History

class CreatePosts < ActiveRecord::Migration[5.0]
def change
create_table :posts do |t|
t.string :title
t.text :content
t.integer :visited_count
t.timestamps
end
end
end