Sha256: aca351698f4464fd8f950e7be08733d0777f5f0da8e31eb724b19d0daf9e0683

Contents?: true

Size: 244 Bytes

Versions: 48

Compression:

Stored size: 244 Bytes

Contents

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

      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
netzke-basepack-0.5.5 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.5.4 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.5.3 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.5.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.5.2 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.1.2.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.1.2 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.1.4.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.1.3.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.1.3 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.2.2 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.2.0.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.2.0 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.6 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.5 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.4 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.3.1 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.3 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.10 test/app_root/db/migrate/20081222033343_create_books.rb
netzke-basepack-0.3.1 test/app_root/db/migrate/20081222033343_create_books.rb