Module: DataMapper::Constraints::Migrations::SingletonMethods
- Included in:
- DataMapper
- Defined in:
- lib/data_mapper/constraints/migrations/singleton_methods.rb
Instance Method Summary collapse
Instance Method Details
#auto_migrate!(repository_name = nil) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/data_mapper/constraints/migrations/singleton_methods.rb', line 5 def auto_migrate!(repository_name = nil) auto_migrate_constraints_down(repository_name) # TODO: Model#auto_migrate! drops and adds constraints, as well. # is that an avoidable duplication? super auto_migrate_constraints_up(repository_name) self end |