validates_presence_of :state_id does not make State required #1400

Closed
fingermark opened this Issue Nov 15, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@fingermark

Shouldn't the following code make State a required field, even when state_id can be null in the schema?

belongs_to :state
validates_presence_of :state_id

@fingermark fingermark closed this Nov 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment