Skip to content

Commit

Permalink
Made a unique index for relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Dec 18, 2010
1 parent 60f9d66 commit e06616e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrate/20100831012055_create_relationships.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def self.up
end
add_index :relationships, :follower_id
add_index :relationships, :followed_id
add_index :relationships, [:follower_id, :followed_id], :unique => true
end

def self.down
Expand Down

0 comments on commit e06616e

Please sign in to comment.