summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130506093400_add_idle_text_gs_parameters.rb9
-rw-r--r--db/migrate/20130507095000_add_display_id_unicode_gs_parameters.rb9
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20130506093400_add_idle_text_gs_parameters.rb b/db/migrate/20130506093400_add_idle_text_gs_parameters.rb
new file mode 100644
index 0000000..72416d5
--- /dev/null
+++ b/db/migrate/20130506093400_add_idle_text_gs_parameters.rb
@@ -0,0 +1,9 @@
+class AddIdleTextGsParameters < ActiveRecord::Migration
+ def up
+ GsParameter.create(:entity => 'phones', :section => 'snom', :name => 'user_idle_text', :value => '{caller_name}', :class_type => 'String', :description => 'Name shown on the idle screen')
+ end
+
+ def down
+ GsParameter.where(:entity => 'phones', :section => 'snom', :name => 'user_idle_text').destroy_all
+ end
+end
diff --git a/db/migrate/20130507095000_add_display_id_unicode_gs_parameters.rb b/db/migrate/20130507095000_add_display_id_unicode_gs_parameters.rb
new file mode 100644
index 0000000..9b6ec66
--- /dev/null
+++ b/db/migrate/20130507095000_add_display_id_unicode_gs_parameters.rb
@@ -0,0 +1,9 @@
+class AddDisplayIdUnicodeGsParameters < ActiveRecord::Migration
+ def up
+ GsParameter.create(:entity => 'phones', :section => 'siemens', :name => 'display-id-unicode', :value => '{caller_name}', :class_type => 'String', :description => 'Name shown on the idle screen')
+ end
+
+ def down
+ GsParameter.where(:entity => 'phones', :section => 'siemens', :name => 'display-id-unicode').destroy_all
+ end
+end