Method: Sequel::ConstraintValidations#alter_table_generator
- Defined in:
- lib/sequel/extensions/constraint_validations.rb
#alter_table_generator(&block) ⇒ Object
Modify the default alter_table generator to include the constraint validation methods.
321 322 323 324 325 326 327 |
# File 'lib/sequel/extensions/constraint_validations.rb', line 321 def alter_table_generator(&block) super do extend AlterTableGeneratorMethods @validations = [] instance_exec(&block) if block end end |