Remove failing migration
The CreateSlugsForExistingConferences migration was failing and is also negated by the following RemoveSlugsFromConferences migration.
This commit is contained in:
parent
1bec127503
commit
a85c2c4403
|
@ -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
|
|
Loading…
Reference in New Issue