diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-13 23:42:40 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-13 23:42:40 -0400 |
commit | 18750ab38b81ac76dbafad3dfbdaddb39b87d12e (patch) | |
tree | ab8bbe376900c791b4c1f9e1789b765f702970e6 /db | |
parent | fd507fb31e90e32fcd2a0cc60cb09661f777958b (diff) |
event_socket configuration added
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130314031100_add_event_socket_gs_parameters.rb | 11 |
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 |