Skip to content

Migration code breaks dev if env vars aren't present #2

@bradrobertson

Description

@bradrobertson

This line will break in development (the app won't even load) if you don't have these env vars set.

This shouldn't be required to just start the app in development mode. One thought is to lazily load the connections, but these should be thread safe as doing a

def self.redshift_db
  @redshift_db ||= Sequel.connect()
end

is NOT thread safe. Perhaps assign them to a thread local var.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions