Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created July 16, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertFischer/599710eb7752b69a70d9 to your computer and use it in GitHub Desktop.
Save RobertFischer/599710eb7752b69a70d9 to your computer and use it in GitHub Desktop.
Addition to Rakefile to enable database name
# I don't think these database names are wrong, but you should be able to get the idea
class ActiveRecord::Migration
def self.whSalesDbName
return "DevSalesDb" if(ENV['NODE_ENV'] != "production")
return "SalesDb"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment