Commit a57a915
Frédéric de Villamil
Fixes rake tasks in production mode.
lib/bare_migration.rb was not loaded anymore, which was breaking some migrations.
Contrary to running your application in production, a Rake task does not eager load your entire code base. So only if is false, will the application be eager-loaded in production. And is set to true in the :environment Rake task.
Solution was given at https://rails.lighthouseapp.com/projects/8994/tickets/2506-models-are-not-loaded-in-migrations-when-configthreadsafe-is-set1 parent fdf6bc6 commit a57a915
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
0 commit comments