Permalink
Browse files

Cleaning up old View Objects

  • Loading branch information...
1 parent cf203bd commit 25ed674f508bd7280b1dcc4c86501c26776f08d2 @adahmash adahmash committed Apr 9, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 db/migrate/20120409185035_remove_old_vo_templates.rb
@@ -0,0 +1,20 @@
+class RemoveOldVoTemplates < ActiveRecord::Migration
+ def up
+ template_names = ["v2_single_col_list",
+ "v2_triple_col_large_2",
+ "v2_double_col_feature",
+ "v2_single_col_small_list",
+ "v2_single_col_item",
+ "v2_double_col_item",
+ "v2_double_col_item_list",
+ "v2_double_col_triple_item",
+ "v2_double_col_feature_triple_item"]
+ template_names.each do |tn|
+ tn = ViewObjectTemplate.find_by_name(tn)
+ tn.destroy
+ end
+ end
+
+ def down
+ end
+end

0 comments on commit 25ed674

Please sign in to comment.