Sha256: d2ba77ce2586f986fcba727aaec4da337f9df1121a2847bb1e392dadc1c64f28
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 Bytes
Contents
require 'sequel/extensions/migration' module SequelRails class Migrations class << self def migrate(version=nil) opts = {} opts[:target] = version.to_i if version ::Sequel::Migrator.run(::Sequel::Model.db, Rails.root.join("db/migrate"), opts) end alias_method :migrate_up!, :migrate alias_method :migrate_down!, :migrate def pending_migrations? return false unless File.exists?(Rails.root.join("db/migrate")) !::Sequel::Migrator.is_current?(::Sequel::Model.db, Rails.root.join("db/migrate")) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sequel-rails-0.5.0 | lib/sequel_rails/migrations.rb |
sequel-rails-0.4.4 | lib/sequel_rails/migrations.rb |
sequel-rails-0.4.3 | lib/sequel_rails/migrations.rb |