Created
July 15, 2013 13:33
-
-
Save waterlink/5999962 to your computer and use it in GitHub Desktop.
This file contains 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
# Tip 1 | |
# Problem: Models are not loaded in migrations when config.threadsafe! is set | |
# Why: The threadsafe option in production doesn't load the dependencies | |
# Solution: Configure it to load dependencies with this option in your production.rb just after config.threadsafe! | |
# config/environments/production.rb | |
config.threadsafe! | |
config.dependency_loading = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment