lib/activerecord_snapshot_view/snapshot_view.rb
# create the switch table if it doesn't already exist. return the switch table name
create the switch table if it doesn't already exist. return the switch table name
create the switch table if it doesn ' t already exist . return the switch table name
def ensure_switch_table
        stn = switch_table_name
        if !connection.table_exists?(stn) 
          create_switch_table(stn)
        end
        stn
      end
def ensure_switch_table stn = switch_table_name if ! connection . table_exists? ( stn ) create_switch_table ( stn ) end stn end
create the switch table if it doesn't already exist.
create the switch table if it doesn ' t already exist .
# don't execute any ddl code if we don't need to