Created
July 16, 2014 13:28
-
-
Save RobertFischer/599710eb7752b69a70d9 to your computer and use it in GitHub Desktop.
Addition to Rakefile to enable database name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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