Class: Switches::Backends::Postgres::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/switches/backends/postgres/tasks/setup.rb

Instance Method Summary collapse

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

#runObject



9
10
11
12
# File 'lib/switches/backends/postgres/tasks/setup.rb', line 9

def run
  create_table
  create_index
end