Sha256: b45240065d7d24af570283208ed143eadf07234854002cb47046e67436e2523d

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

class CreateCustomPkName < ActiveRecord::Migration
  def self.up
    create_table :custom_pk_names, :force => true, :id => false do |t|
      t.primary_key :custom_id
      t.string :name
    end
  end
  def self.down
    drop_table :custom_pk_names
  end
end

class CustomPkName < ActiveRecord::Base
  self.primary_key = "custom_id"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/models/custom_pk_name.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/models/custom_pk_name.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/models/custom_pk_name.rb
activerecord-jdbc-adapter-1.2.9 test/models/custom_pk_name.rb
activerecord-jdbc-adapter-1.2.8 test/models/custom_pk_name.rb