Sha256: 3e1fba8d85a7cabc293e1832c3d5621344f11de22c65107598725bc28b4b756c

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books do |t|
      t.integer :author_id
      t.string :title
      t.integer :exemplars
      t.boolean :digitized
      t.text :notes

      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-basepack-0.6.2 test/rails_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.6.1 test/rails_app/db/migrate/20101026190021_create_books.rb