Merge pull request #15 from ignisf/remove-slugs

Remove failing slugs migration
This commit is contained in:
Petko Bordjukov 2015-07-19 15:02:03 +03:00
commit 1a662d4c4c
1 changed files with 0 additions and 13 deletions

View File

@ -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