Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 347 Bytes
class AddMissingIndices < ActiveRecord::Migration
def self.up
add_index :tolk_locales, :name, :unique => true
add_index :tolk_translations, [:phrase_id, :locale_id], :unique => true
end
def self.down
remove_index :tolk_translations, :column => [:phrase_id, :locale_id]
remove_index :tolk_locales, :column => :name
end
end