class Switches::Backends::Postgres::Remove

Public Class Methods

new(connection) click to toggle source
# File lib/switches/backends/postgres/tasks/remove.rb, line 5
def initialize(connection)
  @connection = connection
end

Public Instance Methods

run() click to toggle source
# File lib/switches/backends/postgres/tasks/remove.rb, line 9
def run
  drop_table
end

Private Instance Methods

drop_table() click to toggle source
# File lib/switches/backends/postgres/tasks/remove.rb, line 15
def drop_table
  @connection.execute("DROP TABLE switches")
end