Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4bfb894e70
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.347 kb
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
Jump to Line
Something went wrong with that request. Please try again.