Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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