Class: Ronin::Database::Migrations::Migration
- Inherits:
-
DataMapper::Migration
- Object
- DataMapper::Migration
- Ronin::Database::Migrations::Migration
- Defined in:
- lib/ronin/database/migrations/migration.rb
Overview
Represents a Database Migration.
Instance Attribute Summary collapse
-
#needs ⇒ Object
readonly
The dependencies of the migration.
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ Migration
constructor
private
Creates a new migration.
Constructor Details
#initialize(name, options = {}, &block) ⇒ Migration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates a new migration.
55 56 57 58 59 60 61 |
# File 'lib/ronin/database/migrations/migration.rb', line 55 def initialize(name,={},&block) [:verbose] = UI::Output.verbose? @needs = Array(.delete(:needs)).uniq super(0,name,,&block) end |
Instance Attribute Details
#needs ⇒ Object (readonly)
The dependencies of the migration
33 34 35 |
# File 'lib/ronin/database/migrations/migration.rb', line 33 def needs @needs end |