Sha256: 8738d92caee7b7976d4d27dfff8695c8cb4db2da31c4a409298ca688bd87026a

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

# encoding: utf-8

class UpdatePageRedirectTo < ActiveRecord::Migration
  def self.up
    include Rails.application.routes.url_helpers
    change_column :pages, :redirect_to, :string
  end

  def self.down
    change_column :pages, :redirect_to, :text
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.5.1 db/migrate/20130823133208_update_page_redirect_to.rb