validates_presence_of :state_id does not make State required #1400

fingermark opened this Issue Nov 15, 2012 · 0 comments


None yet
1 participant

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