summaryrefslogtreecommitdiff
path: root/db/migrate/20111106084200_create_voicemail_prefs.rb
blob: 162fa8a035061a60aa04da7484fbc4df2b6d8ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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