-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add budgets booth and half signup
- Loading branch information
Showing
11 changed files
with
110 additions
and
6 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
16 changes: 16 additions & 0 deletions
16
db/migrate/20240206101716_create_auth_settings.decidim_half_signup.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,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_half_signup (originally 20230214091207) | ||
|
||
class CreateAuthSettings < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_half_signup_auth_settings do |t| | ||
t.boolean :enable_partial_sms_signup, default: false | ||
t.boolean :enable_partial_email_signup, default: false | ||
t.string :slug | ||
t.references :decidim_organization, foreign_key: true, index: { name: :index_half_signup_auth_settings_on_organization_id } | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
db/migrate/20240206101717_add_phone_number_to_decidim_user.decidim_half_signup.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,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_half_signup (originally 20230215093510) | ||
|
||
class AddPhoneNumberToDecidimUser < ActiveRecord::Migration[6.0] | ||
def change | ||
add_column :decidim_users, :phone_number, :string | ||
add_column :decidim_users, :phone_country, :string | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20240206102829_add_main_image_to_decidim_budgets_budgets.decidim_budgets_booth.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_budgets_booth (originally 20230301155948) | ||
|
||
class AddMainImageToDecidimBudgetsBudgets < ActiveRecord::Migration[6.0] | ||
def change | ||
add_column :decidim_budgets_budgets, :main_image, :string | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20240206102830_create_decidim_budgets_user_data.decidim_budgets_booth.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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_budgets_booth (originally 20230303144938) | ||
|
||
class CreateDecidimBudgetsUserData < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_budgets_user_data do |t| | ||
t.jsonb :metadata | ||
t.boolean :affirm_statements_are_correct, default: false | ||
t.references :decidim_component, null: false, indec: true | ||
t.references :decidim_user, null: false, index: true | ||
|
||
t.timestamps | ||
end | ||
|
||
add_index :decidim_budgets_user_data, [:decidim_component_id, :decidim_user_id], unique: true, name: "decidim_budgets_user_data_unique_user_and_component" | ||
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
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
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