Sha256: 68b1b2a8b46e53e4c7b91ec29b7e4232a8f1b1a97c086dd6f136b715585866e1

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 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, :default => false
      t.text :notes
      t.string :tags
      t.integer :rating
      t.decimal :price, precision: 7, scale: 2
      t.float :special_index
      t.string :cover

      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-workspace-0.10.2 spec/rails_app/db/migrate/20101026190021_create_books.rb
netzke-workspace-0.10.1 spec/rails_app/db/migrate/20101026190021_create_books.rb
netzke-workspace-0.10.0 spec/rails_app/db/migrate/20101026190021_create_books.rb