Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0a3bc8479f
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (11 sloc) 0.288 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class AddLocaleToSlugs < ActiveRecord::Migration
  def self.up
    add_column :slugs, :locale, :string, :limit => 5

    add_index :slugs, :locale

    ::Slug.reset_column_information
  end

  def self.down
    remove_column :slugs, :locale

    ::Slug.reset_column_information
  end
end
Something went wrong with that request. Please try again.