metamaps--metamaps/db/migrate/20121025234344_add_permission_to_synapse.rb
2012-10-26 06:04:52 -04:00

13 lines
362 B
Ruby

class AddPermissionToSynapse < ActiveRecord::Migration
def self.up
add_column :synapses, :permission, :text
add_column :synapses, :weight, :text
Synapse.update_all ["permission = ?", "commons"]
Synapse.update_all ["weight = ?", "5"]
end
def self.down
remove_column :synapses, :permission
remove_column :synapses, :weight
end
end