summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20130314031100_add_event_socket_gs_parameters.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20130314031100_add_event_socket_gs_parameters.rb b/db/migrate/20130314031100_add_event_socket_gs_parameters.rb
new file mode 100644
index 0000000..6c26888
--- /dev/null
+++ b/db/migrate/20130314031100_add_event_socket_gs_parameters.rb
@@ -0,0 +1,11 @@
+class AddEventSocketGsParameters < ActiveRecord::Migration
+ def up
+ GsParameter.create(:entity => 'event_socket', :section => 'settings', :name => 'listen-ip', :value => '127.0.0.1', :class_type => 'String', :description => '')
+ GsParameter.create(:entity => 'event_socket', :section => 'settings', :name => 'listen-port', :value => '8021', :class_type => 'Integer', :description => '')
+ GsParameter.create(:entity => 'event_socket', :section => 'settings', :name => 'password', :value => 'ClueCon', :class_type => 'String', :description => '')
+ end
+
+ def down
+ GsParameter.where(:entity => 'event_socket', :section => 'settings').destroy_all
+ end
+end