Permalink
Browse files

Adding modifications to tests to show need for commit 2155367

  • Loading branch information...
1 parent 2155367 commit 2e7526578ec90e13e1ec9a398c76082473f33e23 @pjleonhardt pjleonhardt committed Jan 29, 2010
Showing with 5 additions and 1 deletion.
  1. +2 −0 test/app_root/app/models/person.rb
  2. +3 −1 test/app_root/db/migrate/001_create_people.rb
@@ -1,2 +1,4 @@
class Person < ActiveRecord::Base
+ # to test for non-standard primary_key compliance
+ set_primary_key 'unique_id'
end
@@ -1,6 +1,8 @@
class CreatePeople < ActiveRecord::Migration
def self.up
- create_table :people do |t|
+ create_table :people, :id => false do |t|
+ # to test for non-standard primary_key compliance
+ t.integer :unique_id
t.string :name
end
end

0 comments on commit 2e75265

Please sign in to comment.