
belongs_to :xyz, :nullable => false
Reported by Lawrence Pit | October 24th, 2008 @ 05:45 AM
When defining this:
belongs_to :xyz, :nullable => false
I expect it to create a column named "xyz" with nullable false, and it adds a validates_with_present.
Comments and changes to this ticket
-
Dan Kubb (dkubb) December 5th, 2008 @ 03:14 AM
- Assigned user cleared.
- State changed from new to not-applicable
Marking this as not-applicable as per the following: http://datamapper.lighthouseapp....
However, I do think this idea has merit and should be discussed on the mailing list.
I would actually like to eventually deprecate belongs_to altogether, and instead of:
belongs_to :user
I would want to be able to write:
property :user, User
That way I could specify all the normal options like :nullable, :unique, etc in a natural way, and they'd just apply to the underlying foreign key that is created.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
- Nobody is watching this ticket.