Sha256: 6538fdbb6abc34a377b128110b221abdd57ece7559296e084e16bc14c0769d10

Contents?: true

Size: 411 Bytes

Versions: 61

Compression:

Stored size: 411 Bytes

Contents

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

61 entries across 61 versions & 2 rubygems

Version Path
tb_blog-1.4.4 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.4.3 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.4.2 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.5 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.4.1 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.4.0 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.4 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.4.beta1 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.3 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.2 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.1 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.0 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.3.0.beta1 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.2.1 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.2.0 db/migrate/20120125180945_create_spud_posts.rb
spud_blog-1.0.2 db/migrate/20120125180945_create_spud_posts.rb
spud_blog-1.0.1 db/migrate/20120125180945_create_spud_posts.rb
spud_blog-1.0.0 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.1.3 db/migrate/20120125180945_create_spud_posts.rb
tb_blog-1.1.2 db/migrate/20120125180945_create_spud_posts.rb