mailr/db/migrate/20110727074214_rename_attribs_in_folders.rb
Wojciech Todryk 37f548ce46 devel
2011-07-27 20:34:30 +02:00

12 lines
297 B
Ruby
Executable file

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