Sha256: 6d07a5ef1bf7e0e59ec1e3c2d0e8e70cfd11651fd8162f1f3d9439d7fec250da

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :title
      t.text :content_md
      t.text :content_html
      t.boolean :draft, default: false
      t.integer :user_id

      # FriendlyId
      t.string :slug

      t.timestamps
    end
    add_index :posts, :user_id
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
railsbricks-3.7.0 lib/railsbricks/assets/migrations/20141010133702_create_posts.rb
railsbricks-reloaded-3.2.1 lib/railsbricks/assets/migrations/20141010133702_create_posts.rb
phoenixbricks-3.2.7 lib/railsbricks/assets/migrations/20141010133702_create_posts.rb
phoenixbricks-3.2.6 lib/railsbricks/assets/migrations/20141010133702_create_posts.rb