-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
Some validations in the migrant DSL can get very complex and generate interoperability issues with different Ruby versions.
Possible solutions
- Expanded documentation to give further validation examples (serving as 'templates' if you like)
- Simplified multiple validations (perhaps writing the field declaration as a block or something)
structure do
some_really_validated_field do
validates :presence
validates :inclusion, :in => %w(Apple Pear)
end
endJust throwing some ideas around right now.
Reactions are currently unavailable