summaryrefslogtreecommitdiff
path: root/db/migrate/20111006082945_create_phone_books.rb
blob: 7a4e967d5ec92512dfefbaf74bd0d57a29581f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class CreatePhoneBooks < ActiveRecord::Migration
  def self.up
    create_table :phone_books do |t|
      t.string :name
      t.string :description
      t.integer :phone_bookable_id
      t.string :phone_bookable_type
      t.string :state
      t.integer :position
      t.timestamps
    end
  end

  def self.down
    drop_table :phone_books
  end
end