Additional methods for the alter_table generator to support constraint validations, used to give it a more similar API to the create_table generator.
Included modules
Public Instance methods
constraint(*args)
Alias of add_constraint for similarity to create_table generator.
[show source]
# File lib/sequel/extensions/constraint_validations.rb 232 def constraint(*args) 233 add_constraint(*args) 234 end
unique(*args)
Alias of add_unique_constraint for similarity to create_table generator.
[show source]
# File lib/sequel/extensions/constraint_validations.rb 237 def unique(*args) 238 add_unique_constraint(*args) 239 end