On Sep 15, 9:44 pm, Patrick Doyle <[email protected]> wrote:
> ...but (not surprisingly) when I run my unit test, I get:
>
> ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column:
> lots.part
>
> Basically, I want to ensure that identifiers are unique for a given part.
>
> I think I'm going to have to write my own validation here, but I thought I
> would ask the question first.
Well validates uniqueness of wants scope to be column, so give it one
(part_id) !
Fred
>
> --wpd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---