forked from bofh/fetsite
GitHub Account angelegt
This commit is contained in:
17
db/migrate/20130115110100_translate_studien.rb
Normal file
17
db/migrate/20130115110100_translate_studien.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class TranslateStudien < ActiveRecord::Migration
|
||||
def self.up
|
||||
Studium.create_translation_table!({
|
||||
:desc => :text,
|
||||
:shortdesc => :text
|
||||
}, {
|
||||
#:migrate_data => true
|
||||
})
|
||||
add_column :studium_translations, :studien_id, :integer
|
||||
remove_column :studium_translations, :studium_id
|
||||
|
||||
end
|
||||
|
||||
def self.down
|
||||
Studium.drop_translation_table! #:migrate_data => true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user