Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1838 from witlessbird/fix-readonlyrecord-exception

fixed a ActiveRecord::ReadOnlyRecord error occuring during the migration
  • Loading branch information...
commit be76ec44ba3bcb46fd45652667a6eb843522bc13 2 parents 78424d0 + 982c4dc
@witlessbird witlessbird authored
View
2  src/db/migrate/20130318171849_migrate_environment_default_content_view_to_version.rb
@@ -8,7 +8,7 @@ def self.up
(org.environments + [org.library]).each do |env|
old_view = ContentView.where(:environment_default_id=>env.id).first
cve = old_view.content_view_environments.first
- version = old_view.version(env)
+ version = ContentViewVersion.find(old_view.version(env))
version.content_view = default_view
version.save!
Please sign in to comment.
Something went wrong with that request. Please try again.