Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0a3bc8479f
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.316 kb
class RemoveCachedSlugFromPages < ActiveRecord::Migration
def self.up
if ::Page.column_names.map(&:to_s).include?('cached_slug')
remove_column ::Page.table_name, :cached_slug
end
::Page.reset_column_information
end
def self.down
# Don't add this column back, it breaks stuff.
end
end
Jump to Line
Something went wrong with that request. Please try again.