Skip to content

Commit

Permalink
add null: false to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed May 22, 2024
1 parent fb5913f commit 1f5963b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

class AddCensusDataToDecidimVocdoniElections < ActiveRecord::Migration[6.1]
def change
# rubocop:disable Rails/ThreeStateBooleanColumn
add_column :decidim_vocdoni_elections, :internal_census, :boolean, default: false
add_column :decidim_vocdoni_elections, :internal_census, :boolean, default: false, null: false
add_column :decidim_vocdoni_elections, :verification_types, :string, array: true, default: []
add_column :decidim_vocdoni_elections, :census_attributes, :jsonb, default: {}
add_column :decidim_vocdoni_elections, :last_census_update_records_added, :integer
add_column :decidim_vocdoni_elections, :census_last_updated_at, :datetime
add_column :decidim_vocdoni_voters, :in_vocdoni_census, :boolean, default: false
# rubocop:enable Rails/ThreeStateBooleanColumn
add_column :decidim_vocdoni_voters, :in_vocdoni_census, :boolean, default: false, null: false
end
end

This file was deleted.

0 comments on commit 1f5963b

Please sign in to comment.