This commit is contained in:
HausdorffHimself
2013-08-24 04:17:03 +02:00
25 changed files with 131 additions and 43 deletions

View File

@@ -3,13 +3,13 @@ class TranslateLvas < ActiveRecord::Migration
Lva.create_translation_table!({
:desc => :text
}, {
#:migrate_data => true
:migrate_data => true
})
end
def self.down
Lva.drop_translation_table! #:migrate_data => true
Lva.drop_translation_table! :migrate_data => true
end
end
end

View File

@@ -0,0 +1,14 @@
class AddObjectToCalentries < ActiveRecord::Migration
def up
add_column :calentries,:object_id, :integer
add_column :calentries,:object_type, :string
add_column :calentries, :public, :boolean
Calentry.update_all(:public => :true)
end
def down
remove_column :calentries, :object_id
remove_column :calentries,:object_type
remove_column :calentries,:public
end
end

View File

@@ -0,0 +1,9 @@
class AddPublicToRubrikneuigkeiten < ActiveRecord::Migration
def up
add_column :rubriken, :public,:boolean
Rubrik.update_all(:public => :true)
end
def down
remove_column :rubriken, :public
end
end

View File

@@ -0,0 +1,5 @@
class AddPictureToNeuigkeiten < ActiveRecord::Migration
def change
add_column :neuigkeiten,:picture,:string
end
end