Sha256: c5bda3210022d606253dd002e449e20750db7a469c792b3715bd66246468f55f

Contents?: true

Size: 245 Bytes

Versions: 4

Compression:

Stored size: 245 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books do |t|
      t.string  :title
      t.string  :author
      t.integer :shelf_id

      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dm-rest-adapter-0.9.9 fixtures/book_service/db/migrate/20080608165526_create_books.rb
dm-rest-adapter-0.9.10 fixtures/book_service/db/migrate/20080608165526_create_books.rb
dm-rest-adapter-0.9.7 fixtures/book_service/db/migrate/20080608165526_create_books.rb
dm-rest-adapter-0.9.8 fixtures/book_service/db/migrate/20080608165526_create_books.rb