Skip to content

Commit

Permalink
Merge pull request #9 from kbaum/master
Browse files Browse the repository at this point in the history
Made compatible with heroku
  • Loading branch information
Andrew J Vargo committed Jun 29, 2013
2 parents b76a7b2 + ea5cdda commit cab766d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def past_migrations sort=nil
end

def assure_data_schema_table
config = ActiveRecord::Base.configurations[Rails.env || 'development']
config = ActiveRecord::Base.configurations[Rails.env || 'development'] || ENV["DATABASE_URL"]
ActiveRecord::Base.establish_connection(config)
sm_table = DataMigrate::DataMigrator.schema_migrations_table_name

Expand Down

0 comments on commit cab766d

Please sign in to comment.