Sha256: f120ea21389ffe19b92a9c9f8798660ab7c6a18c3abe58fc2877303b1d5a2016
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.2.5 | test/models/custom_pk_name.rb |
activerecord-jdbc-adapter-onsite-1.2.2 | test/models/custom_pk_name.rb |