Merge branch 'master' of heroku.com:metamaps-staging
This commit is contained in:
commit
6c520cdd2f
8 changed files with 0 additions and 23 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue