metamaps--metamaps/db/migrate/20121025234111_add_permission_to_item.rb
2012-10-26 06:04:52 -04:00

10 lines
229 B
Ruby

class AddPermissionToItem < ActiveRecord::Migration
def self.up
add_column :items, :permission, :text
Item.update_all ["permission = ?", "commons"]
end
def self.down
remove_column :items, :permission
end
end