forked from bofh/fetsite
Add object to calentries
This commit is contained in:
14
db/migrate/20130823084252_add_object_to_calentries.rb
Normal file
14
db/migrate/20130823084252_add_object_to_calentries.rb
Normal 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
|
||||
Reference in New Issue
Block a user