Skip to content
  • This project
    • Loading...
  • Sign in

tailor / nuozheng

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • nuozheng
  • db
  • migrate
  • 20160102123308_create_posts.rb
  • tailor's avatar
    从bitbucket迁移过来 · 62f1b3dc
    62f1b3dc Browse Files
    tailor authored 2020-02-13 22:43:13 +0800
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