Class: Pakyow::Data::Adapters::Sql::Migrators::Automator::AlterTable Private
- Inherits:
-
Object
- Object
- Pakyow::Data::Adapters::Sql::Migrators::Automator::AlterTable
- Defined in:
- lib/pakyow/data/adapters/sql/migrators/automator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #drop_column ⇒ Object private
-
#initialize(table) ⇒ AlterTable
constructor
private
A new instance of AlterTable.
- #method_missing(name, *args, &block) ⇒ Object private
Constructor Details
#initialize(table) ⇒ AlterTable
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.
Returns a new instance of AlterTable.
33 34 35 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 33 def initialize(table) @table = table end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
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.
41 42 43 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 41 def method_missing(name, *args, &block) @table.public_send(name, *args, &block) end |
Instance Method Details
#drop_column ⇒ Object
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.
37 38 39 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 37 def drop_column(*) # Prevent columns from being dropped during auto migrate. end |