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