Files
fetsite/db/migrate/20130124000200_translate_moduls.rb
Andreas Stephanides 3d11400d5e GitHub Account angelegt
2013-02-12 02:05:12 +01:00

17 lines
313 B
Ruby

class TranslateModuls < ActiveRecord::Migration
def self.up
Modul.create_translation_table!({
:desc => :text,
:depend => :text,
:name => :string
}, {
#:migrate_data => true
})
end
def self.down
Modul.drop_translation_table! #:migrate_data => true
end
end