Class: Cassie::Schema::ApplyCommand
- Defined in:
- lib/cassie/schema/apply_command.rb
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #direction ⇒ Object
- #execute ⇒ Object
-
#initialize(version) ⇒ ApplyCommand
constructor
A new instance of ApplyCommand.
Constructor Details
permalink #initialize(version) ⇒ ApplyCommand
Returns a new instance of ApplyCommand.
5 6 7 |
# File 'lib/cassie/schema/apply_command.rb', line 5 def initialize(version) @version = version end |
Instance Attribute Details
Instance Method Details
permalink #direction ⇒ Object
[View source]
9 10 11 |
# File 'lib/cassie/schema/apply_command.rb', line 9 def direction :up end |
permalink #execute ⇒ Object
[View source]
13 14 15 16 |
# File 'lib/cassie/schema/apply_command.rb', line 13 def execute version.migration.up apply end |