Sha256: 15805d8515c688db2c0e76e5ef2d3bbe64e24c9d4af40201286ffb1080b99ff6

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

class CreateContacts < ActiveRecord::Migration
  def change
    create_table :contacts do |t|
      t.references :customer
      t.string :name, limit: 150
      t.integer :department_id
      t.string :business_function
      t.string :phone
      t.string :cell
      t.string :birthday

      t.timestamps
    end
    
    add_index :contacts, :customer_id
    add_index :contacts, :department_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 db/migrate/20120705121011_create_contacts.rb
guara-0.0.1.rc db/migrate/20120705121011_create_contacts.rb