Sha256: fc89d8de3dfb143a62ab9fa49a81246313c83684e8a28b112aa46e4d5b5b5d23

Contents?: true

Size: 205 Bytes

Versions: 8

Compression:

Stored size: 205 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.references :post
      t.references :user
      t.string :content
      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
embedded_associations-4.1.2 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-4.1.1 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-4.1.0 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-4.0.0 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-0.0.4 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-0.0.3 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-0.0.2 spec/support/app/db/migrate/20130225045512_create_comments.rb
embedded_associations-0.0.1 spec/support/app/db/migrate/20130225045512_create_comments.rb