-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install
decidim-vocdoni
module (#578)
* Install decidim-vocdoni module * Bump decidim-vocdoni version * Bump decidim-vocdoni version
- Loading branch information
Showing
19 changed files
with
2,162 additions
and
940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
db/migrate/20241107122532_create_decidim_vocdoni_elections.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20221204131113) | ||
|
||
class CreateDecidimVocdoniElections < ActiveRecord::Migration[6.1] | ||
def change | ||
create_table :decidim_vocdoni_elections do |t| | ||
t.jsonb :title | ||
t.jsonb :description | ||
t.string :stream_uri | ||
t.datetime :start_time | ||
t.datetime :end_time | ||
t.datetime :published_at | ||
t.datetime :blocked_at | ||
t.string :status | ||
t.references :decidim_component, index: true | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
db/migrate/20241107122533_create_decidim_vocdoni_questions.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20221207081917) | ||
|
||
class CreateDecidimVocdoniQuestions < ActiveRecord::Migration[6.1] | ||
def change | ||
create_table :decidim_vocdoni_questions do |t| | ||
t.references :decidim_vocdoni_election | ||
t.jsonb :title | ||
t.integer :weight | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
db/migrate/20241107122534_create_decidim_vocdoni_answers.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20221207082107) | ||
|
||
class CreateDecidimVocdoniAnswers < ActiveRecord::Migration[6.1] | ||
def change | ||
create_table :decidim_vocdoni_answers do |t| | ||
t.references :decidim_vocdoni_question | ||
t.jsonb :title | ||
t.jsonb :description | ||
t.integer :weight | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
11 changes: 11 additions & 0 deletions
11
db/migrate/20241107122535_create_decidim_vocdoni_wallets.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230110084746) | ||
|
||
class CreateDecidimVocdoniWallets < ActiveRecord::Migration[6.1] | ||
def change | ||
create_table :decidim_vocdoni_wallets do |t| | ||
t.string :private_key | ||
t.references :decidim_organization, foreign_key: true, index: true | ||
end | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20241107122536_add_description_to_decidim_vocdoni_questions.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230112144820) | ||
|
||
class AddDescriptionToDecidimVocdoniQuestions < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_questions, :description, :jsonb | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
...te/20241107122537_add_vocdoni_election_id_to_decidim_vocdoni_elections.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230114084206) | ||
|
||
class AddVocdoniElectionIdToDecidimVocdoniElections < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_elections, :vocdoni_election_id, :string | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
db/migrate/20241107122538_create_decidim_vocdoni_voters.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230123112353) | ||
|
||
class CreateDecidimVocdoniVoters < ActiveRecord::Migration[6.1] | ||
def change | ||
create_table :decidim_vocdoni_voters do |t| | ||
t.string :email | ||
t.date :born_at | ||
t.string :wallet_address | ||
|
||
t.references :decidim_vocdoni_election, foreign_key: true, index: true | ||
t.timestamps | ||
end | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20241107122539_add_votes_to_decidim_vocdoni_answers.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230215092726) | ||
|
||
class AddVotesToDecidimVocdoniAnswers < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_answers, :votes, :integer | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
...241107122540_add_election_type_attributes_to_decidim_vocdoni_elections.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230217083343) | ||
|
||
class AddElectionTypeAttributesToDecidimVocdoniElections < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_elections, :election_type, :jsonb, default: {} | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20241107122541_add_values_to_decidim_vocdoni_answers.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230306102447) | ||
|
||
class AddValuesToDecidimVocdoniAnswers < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_answers, :value, :integer | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20241107122542_change_census_fields_on_decidim_vocodni_voters.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20230314115532) | ||
|
||
class ChangeCensusFieldsOnDecidimVocodniVoters < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_voters, :token, :string | ||
remove_column :decidim_vocdoni_voters, :born_at, :date | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
db/migrate/20241107122543_add_census_data_to_decidim_vocdoni_elections.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20231107142971) | ||
|
||
class AddCensusDataToDecidimVocdoniElections < ActiveRecord::Migration[6.1] | ||
def change | ||
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, null: false | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20241107122544_add_answers_count_to_decidim_vocdoni_questions.decidim_vocdoni.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_vocdoni (originally 20240516163557) | ||
|
||
class AddAnswersCountToDecidimVocdoniQuestions < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :decidim_vocdoni_questions, :answers_count, :integer, default: 0, null: false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.