There was an error while loading. Please reload this page.
1 parent fc29e3e commit f493d35Copy full SHA for f493d35
db/migrate/20120813180110_browsercms354.rb
@@ -0,0 +1,9 @@
1
+class Browsercms354 < ActiveRecord::Migration
2
+ def up
3
+ # Attachments should not be overly specific, since it prevents joins from working.
4
+ ["Cms::ImageBlock", "Cms::FileBlock"].each do |old_type|
5
+ Cms::Attachment.unscoped.update_all({:attachable_type => "Cms::AbstractFileBlock"}, {:attachable_type => old_type})
6
+ end
7
8
+end
9
+
0 commit comments