Sha256: 5b94e95078da4746a25197d61a364dad7442e859a50d96a3a674c088e9560cf8
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
module Mack module Database module Migrations # Migrates the database to the latest version def self.migrate raise NoMethodError.new(:migrate) end # Rolls back the database by the specified number of steps. Default is 1 def self.rollback(step = 1) raise NoMethodError.new(:rollback) end def self.abort_if_pending_migrations raise NoMethodError.new(:abort_if_pending_migrations) end # Returns the current version of the database def self.version raise NoMethodError.new(:version) end # Returns a list of the all migration files. def self.migration_files Dir.glob(File.join(Mack.root, "db", "migrations", "*.rb")) end end # Migrations end # Database end # Mack
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mack-orm-0.7.0.1 | lib/mack-orm/database_migrations.rb |
mack-orm-0.7.0 | lib/mack-orm/database_migrations.rb |