Class: Rails::Sequel::Migrations
- Inherits:
-
Object
- Object
- Rails::Sequel::Migrations
- Defined in:
- lib/sequel-rails/migrations.rb
Class Method Summary collapse
- .migrate_down!(version = nil) ⇒ Object
- .migrate_up!(version = nil) ⇒ Object
- .pending_migrations? ⇒ Boolean
Class Method Details
.migrate_down!(version = nil) ⇒ Object
13 14 15 16 17 |
# File 'lib/sequel-rails/migrations.rb', line 13 def migrate_down!(version=nil) opts = {} opts[:target] = version.to_i if version ::Sequel::Migrator.run(::Sequel::Model.db, "db/migrate", opts) end |