Sha256: 3a17b6985e04294b374d584a8d890757a009aafa7bfc782dad9f9fe4e1daaf5f

Contents?: true

Size: 229 Bytes

Versions: 2

Compression:

Stored size: 229 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.string :id
      t.text :text
      t.integer :blog_id

      t.timestamps
    end
    add_index :comments, :blog_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brightcontent-core-2.0.33 spec/dummy/db/migrate/20130720211920_create_comments.rb
brightcontent-core-2.0.31 spec/dummy/db/migrate/20130720211920_create_comments.rb