Sha256: e3b4f3b26c91b0e7e7b576c7da3eab5236b8475189099430fbd796512db1b2ce

Contents?: true

Size: 332 Bytes

Versions: 14

Compression:

Stored size: 332 Bytes

Contents

class CreateBookWithCustomPrimaryKeys < ActiveRecord::Migration
  def self.up
    create_table :book_with_custom_primary_keys, :primary_key => :uid do |t|
      t.integer :uid
      t.string :title
      t.integer :author_id

      t.timestamps
    end
  end

  def self.down
    drop_table :book_with_custom_primary_keys
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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