diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-17 12:05:14 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-17 12:05:14 +0100 |
commit | eaad37485fe59d0306c37cc038dda6d210052910 (patch) | |
tree | 072c4b0e33d442528555b82c415f5e7a1712b2b0 /db/migrate/20111106084200_create_voicemail_prefs.rb | |
parent | 3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff) | |
parent | b80bd744ad873f6fc43018bc4bfb90677de167bd (diff) |
Merge branch 'develop'
Diffstat (limited to 'db/migrate/20111106084200_create_voicemail_prefs.rb')
-rw-r--r-- | db/migrate/20111106084200_create_voicemail_prefs.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20111106084200_create_voicemail_prefs.rb b/db/migrate/20111106084200_create_voicemail_prefs.rb new file mode 100644 index 0000000..162fa8a --- /dev/null +++ b/db/migrate/20111106084200_create_voicemail_prefs.rb @@ -0,0 +1,17 @@ +class CreateVoicemailPrefs < ActiveRecord::Migration + def self.up + create_table :voicemail_prefs, :id => false do |t| + t.string :username, :limit => '255' + t.string :domain, :limit => '255' + t.string :name_path, :limit => '255' + t.string :greeting_path, :limit => '255' + t.string :password, :limit => '255' + end + add_index :voicemail_prefs, [ :username ], :unique => false, :name => 'voicemail_prefs_idx1' + add_index :voicemail_prefs, [ :domain ], :unique => false, :name => 'voicemail_prefs_idx2' + end + + def self.down + drop_table :voicemail_prefs + end +end |