Class: Pakyow::Data::Adapters::Sql::Migrators::Automator Private
- Inherits:
-
Pakyow::Data::Adapters::Sql::Migrator
- Object
- Sources::Relational::Migrator
- Pakyow::Data::Adapters::Sql::Migrator
- Pakyow::Data::Adapters::Sql::Migrators::Automator
- 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.
Defined Under Namespace
Classes: AlterTable
Instance Method Summary collapse
- #alter_table(name, &block) ⇒ Object private
- #associate_table(name, &block) ⇒ Object private
- #method_missing(name, *args, &block) ⇒ Object private
Methods inherited from Pakyow::Data::Adapters::Sql::Migrator
adapter_methods_for_adapter, #change_source!, #change_source?, #create_source!, #create_source?, #disconnect!, globalize_connection_opts!, #initialize, #reassociate_source!
Methods inherited from Sources::Relational::Migrator
#auto_migrate!, #finalize!, #initialize
Constructor Details
This class inherits a constructor from Pakyow::Data::Adapters::Sql::Migrator
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.
22 23 24 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 22 def method_missing(name, *args, &block) @connection.adapter.connection.public_send(name, *args, &block) end |
Instance Method Details
#alter_table(name, &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.
16 17 18 19 20 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 16 def alter_table(name, &block) @connection.adapter.connection.alter_table name do AlterTable.new(self).instance_exec(&block) end end |
#associate_table(name, &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.
12 13 14 |
# File 'lib/pakyow/data/adapters/sql/migrators/automator.rb', line 12 def associate_table(name, **, &block) alter_table(name, &block) end |