We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class UpdateSlugs < Mongoid::Migration def self.up posts = Post.where(:slug.exists => true).only(:slug) posts.each {|p| p.set("_slugs", p["slug"]} Post.where(:slug.exists => true).unset(:slug) end def self.down end end