20160102123308_create_posts.rb 320 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.string :title t.string :flag t.string :words t.text :detail t.integer :parent_id t.string :chan t.string :cate t.boolean :isdel, default: false t.timestamps end end end