Sha256: 2e03e77435f3c58ac0fd99e0f5583cd3e47299e95ed17d582587c46a59402e11

Contents?: true

Size: 359 Bytes

Versions: 16

Compression:

Stored size: 359 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.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.8.3 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.8.2 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.8.1 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.8.0 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.7 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.6 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.5 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.4 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.3 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.2 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.1 test/basepack_test_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.6.5 test/rails_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.7.0 test/rails_app/db/migrate/20101026190021_create_books.rb
netzke-basepack-0.6.4 test/rails_app/db/migrate/20101026190021_create_books.rb