mailr/db/migrate/20110727074214_rename_attribs_in_folders.rb

12 lines
297 B
Ruby
Raw Normal View History

2011-07-27 20:34:30 +02:00
class RenameAttribsInFolders < ActiveRecord::Migration
def self.up
rename_column :folders,:attribs,:haschildren
change_column :folders,:haschildren,:boolean
end
def self.down
change_column :folders,:haschildren,:string
rename_column :folders,:haschildren,:attribs
end
end