Non-auto-increment rails/postgresql column

Posted by Redian on Stack Overflow See other posts from Stack Overflow or by Redian
Published on 2012-06-28T15:05:46Z Indexed on 2012/06/28 15:16 UTC
Read the original article Hit count: 186

I'm trying to have a model/table with duplicate information in it. The reason for this is so that the same data can be written to the table under different users and found for each user. However, I want a quick easy way to identify which information is a duplicate of other information. I think the best way to do this would be to have an item_id of sorts that increments with each "set" of entries to the table. Is there a way to do this without including another table that stores the information without attributing it to users?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails-3