Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

create a unique index on id in the index tables

  • Loading branch information...
commit 283eb7b193c3e40a8aff957d2b0b531c4e3311e2 1 parent 61d2e9c
@jamesgolick authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/friendly/table_creator.rb
View
1  lib/friendly/table_creator.rb
@@ -35,6 +35,7 @@ def create_index_table(table)
method(table.klass.attributes[f].type.name.to_sym).call(f)
end
primary_key table.fields.flatten + [:id]
+ unique :id
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.