Sha256: d39b6083db60a0ed96f1f930299ff5f8dc8ea360d6a1e0ac85b2dec70949790f
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
module Apartment module Migrator extend self # Migrate to latest def migrate(database) Database.process(database){ ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_path) } end # Migrate up/down to a specific version def run(direction, database, version) Database.process(database){ ActiveRecord::Migrator.run(direction, ActiveRecord::Migrator.migrations_path, version) } end # rollback latest migration `step` number of times def rollback(database, step = 1) Database.process(database){ ActiveRecord::Migrator.rollback(ActiveRecord::Migrator.migrations_path, step) } end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
dr-apartment-0.14.1 | lib/apartment/migrator.rb |
apartment-0.14.2 | lib/apartment/migrator.rb |
apartment-0.14.1 | lib/apartment/migrator.rb |
apartment-0.14.0 | lib/apartment/migrator.rb |