MorningPeak/db/migrate/20150616181457_create_contacts.rb
Arthur Poulet b865a60bea Ticket is ready
- Ticket in user/admin sides ok (respond tested)
- Fix seeds
- Fix models
- Fix all migrations
- Add client_... controllers (bills/tickets)
2015-06-18 00:56:01 +02:00

20 lines
415 B
Ruby

class CreateContacts < ActiveRecord::Migration
def change
create_table :contacts do |t|
t.belongs_to :client, index: true, foreign_key: true
t.string :name
t.string :phone
t.string :email
t.date :last_contact
t.text :note
t.string :region
t.string :department
t.string :postal_code
t.text :address
t.timestamps null: false
end
end
end