Class: Switches::Backends::Postgres::Setup
- Inherits:
-
Object
- Object
- Switches::Backends::Postgres::Setup
- Defined in:
- lib/switches/backends/postgres/tasks/setup.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ Setup
constructor
A new instance of Setup.
- #run ⇒ Object
Constructor Details
#initialize(connection) ⇒ Setup
Returns a new instance of Setup.
5 6 7 |
# File 'lib/switches/backends/postgres/tasks/setup.rb', line 5 def initialize(connection) @connection = connection end |
Instance Method Details
#run ⇒ Object
9 10 11 12 |
# File 'lib/switches/backends/postgres/tasks/setup.rb', line 9 def run create_table create_index end |