Sha256: f78e3ade59baba0ffe793ca580d8ad351fd1b13994fb344d8c9d87c990b76c47

Contents?: true

Size: 208 Bytes

Versions: 2

Compression:

Stored size: 208 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books do |t|
      t.string :title
      t.belongs_to :author

      t.timestamps
    end
    add_index :books, :author_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
r_decorator-0.0.7 spec/dummy/db/migrate/20121219075943_create_books.rb
r_decorator-0.0.6 spec/dummy/db/migrate/20121219075943_create_books.rb