Sha256: 862590fb8af13274dabc02beb54c60c64c4fdf1f7143b58d67f1f451b03bd8cd

Contents?: true

Size: 470 Bytes

Versions: 8

Compression:

Stored size: 470 Bytes

Contents

# This migration comes from tb_blog (originally 20120125180945)
class CreateSpudPosts < ActiveRecord::Migration
  def change
    create_table :spud_posts do |t|
      t.integer :spud_user_id
      t.string :title
      t.text :content
      t.boolean :comments_enabled, default: false
      t.boolean :visible, default: true
      t.datetime :published_at
      t.timestamps
    end
    add_index :spud_posts, :spud_user_id
    add_index :spud_posts, :visible
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tb_blog-1.4.4 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.4.3 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.4.2 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.3.5 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.4.1 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.4.0 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.3.4 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
tb_blog-1.4.beta1 spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb