From a85c2c440352110c9563591b37adce77cf175dc5 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 19 Jul 2015 13:58:08 +0300 Subject: [PATCH] Remove failing migration The CreateSlugsForExistingConferences migration was failing and is also negated by the following RemoveSlugsFromConferences migration. --- ...2103031_create_slugs_for_existing_conferences.rb | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 db/migrate/20150712103031_create_slugs_for_existing_conferences.rb diff --git a/db/migrate/20150712103031_create_slugs_for_existing_conferences.rb b/db/migrate/20150712103031_create_slugs_for_existing_conferences.rb deleted file mode 100644 index a1c4414..0000000 --- a/db/migrate/20150712103031_create_slugs_for_existing_conferences.rb +++ /dev/null @@ -1,13 +0,0 @@ -class CreateSlugsForExistingConferences < ActiveRecord::Migration - class Conference < ActiveRecord::Base - end - - def change - Globalize.with_locale(:en) do - Conference.find_each do |c| - c.slug = c.title.gsub(/\s+/, '-') - c.save! - end - end - end -end