Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

set the primary key in case the db doesn't have it set #520

Closed
wants to merge 1 commit into from

1 participant

@dwradcliffe
Owner

fixes rubygems/rubygems-aws#69

@dwradcliffe
Owner

Fixed in the database!

@dwradcliffe dwradcliffe closed this
@dwradcliffe dwradcliffe deleted the dwradcliffe:rubygems-primary-key branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 1, 2013
  1. @dwradcliffe

    set the primary key in case the db doesn't have it set

    dwradcliffe authored
    fixes rubygems/rubygems-aws#69
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  app/models/rubygem.rb
View
2  app/models/rubygem.rb
@@ -1,6 +1,8 @@
class Rubygem < ActiveRecord::Base
include Patterns
+ self.primary_key = 'id'
+
has_many :owners, :through => :ownerships, :source => :user
has_many :ownerships, :dependent => :destroy
has_many :subscribers, :through => :subscriptions, :source => :user
Something went wrong with that request. Please try again.