Skip to content

@jonleighton /bug_2807.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.