summaryrefslogtreecommitdiff
path: root/db/migrate/20130116133433_create_route_elements.rb
blob: 72f6894f8f2caa7ef8beca8a3e1dcde4e881c464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class CreateRouteElements < ActiveRecord::Migration
  def self.up
    create_table :route_elements do |t|
      t.integer :call_route_id
      t.string :var_in
      t.string :var_out
      t.string :pattern
      t.string :replacement
      t.string :action
      t.boolean :mandatory
      t.integer :position
      t.timestamps
    end
  end

  def self.down
    drop_table :route_elements
  end
end