Class: DbSchema::Migration
- Inherits:
-
Object
- Object
- DbSchema::Migration
- Defined in:
- lib/db_schema/migration.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Migration
constructor
A new instance of Migration.
Constructor Details
#initialize(name) ⇒ Migration
Returns a new instance of Migration.
7 8 9 10 |
# File 'lib/db_schema/migration.rb', line 7 def initialize(name) @name = name @conditions = { apply: [], skip: [] } end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/db_schema/migration.rb', line 5 def body @body end |
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
4 5 6 |
# File 'lib/db_schema/migration.rb', line 4 def conditions @conditions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/db_schema/migration.rb', line 4 def name @name end |