summaryrefslogtreecommitdiff
path: root/db/migrate/20111120180010_create_call_forward_cases.rb
blob: d29c246f73216f1011440e021e9fa1d1f16289dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class CreateCallForwardCases < ActiveRecord::Migration
  
  def self.up
    create_table :call_forward_cases do |t|
      t.string :value
      t.timestamps
    end
    add_index( :call_forward_cases, :value, {
      :name => "call_forward_cases_value_index",
      :unique => true,
    })
  end

  def self.down
    remove_index( :call_forward_cases, {
      :name => "call_forward_cases_value_index",
    })
    drop_table :call_forward_cases
  end
  
end