Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

validates_presence_of :state_id does not make State required #1400

Closed
fingermark opened this Issue · 0 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.