diff options
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 |