class CreateContacts < ActiveRecord::Migration
	def change
		create_table :contacts do |t|
			t.belongs_to :customer, index:true,  foreign_key: true
			t.string :name, null: false, limit: 255, default: ''
			t.string :last_name, null: false, limit: 255, default: ''
			t.string :phone, null: false, limit: 30, default: ''
			t.string :email, null: false, limit: 255, default: ''
			t.text :notes, null: false, default: ''
			t.integer :status, null: false, default: 1
			t.timestamps null: false
		end
	end
end
