class CreateRejections < ActiveRecord::Migration - CreateRejections has no descriptive comment
def change -
- CreateRejections#change has approx 7 statements
create_table :rejections do |t| - CreateRejections#change has the variable name 't'
t.references :petition -
t.string :code, limit: 50, null: false -
t.text :details -
t.timestamps null: false
end
add_index :rejections, :petition_id, unique: true
add_foreign_key :rejections, :petitions, on_delete: :cascade
end
end