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.8.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.7.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.6.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.6.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.5.1 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.5.1 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.5.0 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.5.0 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.8 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.8 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.7 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.7 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.6 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.6 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.5 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.5 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.4 db/migrate/20110814093229_create_blog_comments.rb
blogit-0.4.4 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.3 spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
blogit-0.4.3 db/migrate/20110814093229_create_blog_comments.rb