class CreateConstituencyPetitionJournals < ActiveRecord::Migration - CreateConstituencyPetitionJournals has no descriptive comment
def change - CreateConstituencyPetitionJournals#change has approx 6 statements
create_table :constituency_petition_journals do |t| -
- CreateConstituencyPetitionJournals#change has the variable name 't'
t.string :constituency_id, null: false -
t.references :petition, null: false -
t.integer :signature_count, default: 0, null: false -
t.timestamps null: false
end
add_index :constituency_petition_journals, [:petition_id, :constituency_id], unique: true, name: 'idx_constituency_petition_journal_uniqueness'
end
end