class CreateCompanies < ActiveRecord::Migration
  def change
    create_table :companies do |t|
      t.string :name
      t.string :responsible
      t.references :activity
      t.text :observation

      t.timestamps
    end
    add_index :companies, :activity_id
  end
end
