Sha256: bcb7b390b92a851d5f1a70570ef9ee92ed9d1a8a051ac2db4a0ac5f1166c799d

Contents?: true

Size: 201 Bytes

Versions: 8

Compression:

Stored size: 201 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :title
      t.references :user
      t.references :category
      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/20130225045501_create_posts.rb
embedded_associations-4.1.1 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-4.1.0 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-4.0.0 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-0.0.4 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-0.0.3 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-0.0.2 spec/support/app/db/migrate/20130225045501_create_posts.rb
embedded_associations-0.0.1 spec/support/app/db/migrate/20130225045501_create_posts.rb