Skip to content

Commit

Permalink
Copy AR behaviour of creating dbs only for environment with `database…
Browse files Browse the repository at this point in the history
…` key
  • Loading branch information
JonathanTron committed Apr 18, 2012
1 parent 81eb7ab commit 2f79915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel-rails/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class << self

def with_local_repositories
Rails::Sequel.configuration.environments.each_value do |config|
next if config['database'].blank?
if config['host'].blank? || %w[ 127.0.0.1 localhost ].include?(config['host'])
yield(config)
else
Expand Down

0 comments on commit 2f79915

Please sign in to comment.