class AddCertificateToHosts < ActiveRecord::Migration def change add_reference :hosts, :certificate, index: true, foreign_key: true end end