summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130603150455_create_pager_groups.rb13
-rw-r--r--db/migrate/20130603150603_create_pager_group_destinations.rb13
2 files changed, 26 insertions, 0 deletions
diff --git a/db/migrate/20130603150455_create_pager_groups.rb b/db/migrate/20130603150455_create_pager_groups.rb
new file mode 100644
index 0000000..c8b2e46
--- /dev/null
+++ b/db/migrate/20130603150455_create_pager_groups.rb
@@ -0,0 +1,13 @@
+class CreatePagerGroups < ActiveRecord::Migration
+ def self.up
+ create_table :pager_groups do |t|
+ t.integer :sip_account_id
+ t.string :callback_url
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :pager_groups
+ end
+end
diff --git a/db/migrate/20130603150603_create_pager_group_destinations.rb b/db/migrate/20130603150603_create_pager_group_destinations.rb
new file mode 100644
index 0000000..427dba0
--- /dev/null
+++ b/db/migrate/20130603150603_create_pager_group_destinations.rb
@@ -0,0 +1,13 @@
+class CreatePagerGroupDestinations < ActiveRecord::Migration
+ def self.up
+ create_table :pager_group_destinations do |t|
+ t.integer :pager_group_id
+ t.integer :sip_account_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :pager_group_destinations
+ end
+end