Commit 3d01bf96440df5af78c62a18c46336bc656c9e54
1 parent
12761a56
Exists in
master
and in
23 other branches
Save without validation during db:migrate to avoid upgrade errors
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
db/migrate/20110714213405_symbolize_environment_settings_keys.rb
| ... | ... | @@ -3,7 +3,7 @@ class SymbolizeEnvironmentSettingsKeys < ActiveRecord::Migration |
| 3 | 3 | select_all("select id from environments").each do |environment| |
| 4 | 4 | env = Environment.find(environment['id']) |
| 5 | 5 | env.settings.symbolize_keys! |
| 6 | - env.save | |
| 6 | + env.save_without_validation | |
| 7 | 7 | end |
| 8 | 8 | end |
| 9 | 9 | ... | ... |
db/migrate/20110728173905_add_more_trusted_sites_for_environments.rb