Class: DataMapper::DestructiveMigrator

Inherits:
Migrator show all
Defined in:
lib/gems/dm-core-0.9.9/lib/dm-core/migrations/destructive_migrations.rb

Overview

module DestructiveMigrations

Class Method Summary collapse

Methods inherited from Migrator

inherited, subclasses, subclasses=

Class Method Details

.migrate(repository_name) ⇒ Object



11
12
13
14
15
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/migrations/destructive_migrations.rb', line 11

def self.migrate(repository_name)
  models.each do |model|
    model.auto_migrate!
  end
end