summaryrefslogtreecommitdiff
path: root/db/migrate/20120119161017_call_forward_cases.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20120119161017_call_forward_cases.rb')
-rw-r--r--db/migrate/20120119161017_call_forward_cases.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/db/migrate/20120119161017_call_forward_cases.rb b/db/migrate/20120119161017_call_forward_cases.rb
new file mode 100644
index 0000000..2f6466b
--- /dev/null
+++ b/db/migrate/20120119161017_call_forward_cases.rb
@@ -0,0 +1,23 @@
+# ruby encoding: utf-8
+
+class CallForwardCases < ActiveRecord::Migration
+ def up
+ ################################################################
+ # Call forward cases
+ ################################################################
+
+ [
+ 'always',
+ 'busy',
+ 'noanswer',
+ 'offline',
+ 'assistant',
+ ].each { |case_name|
+ CallForwardCase.create( :value => case_name )
+ }
+ end
+
+ def down
+ CallForwardCase.destroy_all
+ end
+end