Sha256: 748d633ff31e2b120b110bc256d8a7512eaff7072d7fe9f78ae5221cfbf65b4e

Contents?: true

Size: 365 Bytes

Versions: 49

Compression:

Stored size: 365 Bytes

Contents

class CreateBlogComments < ActiveRecord::Migration
  def change
    create_table :blog_comments do |t|
      t.string :name, null: false
      t.string :email, null: false
      t.string :website
      t.text :body, null: false
      t.references :post, null: false
      t.string :state

      t.timestamps
    end
    add_index :blog_comments, :post_id
  end
end

Version data entries

49 entries across 30 versions & 1 rubygems

Version Path
blogit-0.4.2 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.2 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.1 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.1 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.3.2 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.3.2 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.3.1 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.3.1 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.3.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.3.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.2.1 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.2.1 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.2.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.2.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.1.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.1.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.0.13 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.0.13 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb