Sha256: 561ad5498ed6783a3f8fd362c0e9dd6343fa67b01be36933c2be66063331c849

Contents?: true

Size: 362 Bytes

Versions: 52

Compression:

Stored size: 362 Bytes

Contents

class CreateSpudPostComments < ActiveRecord::Migration
  def change
    create_table :spud_post_comments do |t|
      t.integer :spud_post_id
      t.string :author
      t.text :content
      t.boolean :approved, :default => false
      t.timestamps
    end
    add_index :spud_post_comments, :spud_post_id
    add_index :spud_post_comments, :approved
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
tb_blog-1.3.2 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.3.1 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.3.0 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.3.0.beta1 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.2.1 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.2.0 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-1.0.2 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-1.0.1 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-1.0.0 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.1.3 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.1.2 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.1.1 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.1.0 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-1.0.0.rc1.1 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-1.0.0.rc1 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.0.4 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.0.3 db/migrate/20120125181359_create_spud_post_comments.rb
spud_blog-0.9.11 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.0.2 db/migrate/20120125181359_create_spud_post_comments.rb
tb_blog-1.0.1 db/migrate/20120125181359_create_spud_post_comments.rb