Merge branch 'master' of heroku.com:metamaps-staging

This commit is contained in:
Devin Howard 2012-11-03 12:06:21 -04:00
commit 6c520cdd2f
8 changed files with 0 additions and 23 deletions

View file

@ -1,10 +0,0 @@
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

View file

@ -1,13 +0,0 @@
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