blob: 15838bb41a3f88e20915c085dfaa97f24c02c261 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class StartPerimeterDefense < ActiveRecord::Migration
def up
module_index = GsParameter.where(:entity => 'events', :section => 'modules').all.count + 1;
GsParameter.create(:entity => 'events', :section => 'modules', :name => 'perimeter_defense', :value => module_index, :class_type => 'Integer')
end
def down
GsParameter.where(:entity => 'events', :section => 'modules', :name => 'perimeter_defense').destroy_all
end
end
|