Class: DataMigrations::Instruction::Exec
- Defined in:
- lib/data_migrations/instruction/exec.rb
Instance Attribute Summary collapse
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Attributes inherited from Base
#columns, #migration, #options
Instance Method Summary collapse
-
#initialize(migration, statement) ⇒ Exec
constructor
A new instance of Exec.
- #statements ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(migration, statement) ⇒ Exec
Returns a new instance of Exec.
6 7 8 9 |
# File 'lib/data_migrations/instruction/exec.rb', line 6 def initialize(migration, statement) super(migration) @statement = statement end |
Instance Attribute Details
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
4 5 6 |
# File 'lib/data_migrations/instruction/exec.rb', line 4 def statement @statement end |
Instance Method Details
#statements ⇒ Object
11 12 13 |
# File 'lib/data_migrations/instruction/exec.rb', line 11 def statements [statement] end |