metamaps--metamaps/db/migrate/20121025234111_add_permission_to_item.rb

11 lines
229 B
Ruby
Raw Normal View History

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