Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View bug_2807.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require 'active_record'
 
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
 
ActiveRecord::Schema.define do
create_table :posts, :id => false do |t|
t.integer :foo
end
end
 
class Post < ActiveRecord::Base
self.primary_key = :foo
end
 
p = Post.create
p Post.primary_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.