class CreatePetitionEmails < ActiveRecord::Migration - CreatePetitionEmails has no descriptive comment
def change - CreatePetitionEmails#change has approx 8 statements
create_table :petition_emails do |t| - CreatePetitionEmails#change has the variable name 't'
t.references :petition -
t.string :subject, null: false -
t.text :body -
t.string :sent_by -
t.timestamps null: false -
end
add_index :petition_emails, :petition_id
add_foreign_key :petition_emails, :petitions, on_delete: :cascade
end
end