~hacktivista/cabildosconstituyentes.cl

b5b5c598e582ff2dd164affe6be01a58fce39290 — Felix Freeman 25 days ago 585d514
Add initiatives module

- Fix migrations
- Add initiatives module to Gemfile, and its migrations
809 files changed, 4837 insertions(+), 3914 deletions(-)

M Gemfile
M Gemfile.lock
R db/migrate/{20210715092933_devise_create_decidim_users.decidim.rb => 20210618154851_devise_create_decidim_users.decidim.rb}
R db/migrate/{20210715092934_create_decidim_organizations.decidim.rb => 20210618154852_create_decidim_organizations.decidim.rb}
R db/migrate/{20210715092935_devise_invitable_add_to_decidim_users.decidim.rb => 20210618154853_devise_invitable_add_to_decidim_users.decidim.rb}
R db/migrate/{20210715092936_user_belongs_to_organization.decidim.rb => 20210618154854_user_belongs_to_organization.decidim.rb}
R db/migrate/{20210715092937_user_has_roles.decidim.rb => 20210618154855_user_has_roles.decidim.rb}
R db/migrate/{20210715092938_add_description_to_organizations.decidim.rb => 20210618154856_add_description_to_organizations.decidim.rb}
R db/migrate/{20210715092939_add_confirmable_to_devise.decidim.rb => 20210618154857_add_confirmable_to_devise.decidim.rb}
R db/migrate/{20210715092940_add_name_to_users.decidim.rb => 20210618154858_add_name_to_users.decidim.rb}
R db/migrate/{20210715092941_add_locale_to_users.decidim.rb => 20210618154859_add_locale_to_users.decidim.rb}
R db/migrate/{20210715092942_create_decidim_authorizations.decidim.rb => 20210618154860_create_decidim_authorizations.decidim.rb}
R db/migrate/{20210715092943_create_decidim_static_pages.decidim.rb => 20210618154861_create_decidim_static_pages.decidim.rb}
R db/migrate/{20210715092944_create_decidim_features.decidim.rb => 20210618154862_create_decidim_features.decidim.rb}
R db/migrate/{20210715092945_add_categories.decidim.rb => 20210618154863_add_categories.decidim.rb}
R db/migrate/{20210715092946_create_decidim_scopes.decidim.rb => 20210618154864_create_decidim_scopes.decidim.rb}
R db/migrate/{20210715092947_make_organization_description_optional.decidim.rb => 20210618154865_make_organization_description_optional.decidim.rb}
R db/migrate/{20210715092948_add_avatar_to_users.decidim.rb => 20210618154866_add_avatar_to_users.decidim.rb}
R db/migrate/{20210715092949_add_logo_to_organizations.decidim.rb => 20210618154867_add_logo_to_organizations.decidim.rb}
R db/migrate/{20210715092950_add_configuration_to_features.decidim.rb => 20210618154868_add_configuration_to_features.decidim.rb}
R db/migrate/{20210715092951_add_handler_to_organization.decidim.rb => 20210618154869_add_handler_to_organization.decidim.rb}
R db/migrate/{20210715092952_create_resource_links.decidim.rb => 20210618154870_create_resource_links.decidim.rb}
R db/migrate/{20210715092953_create_identities.decidim.rb => 20210618154871_create_identities.decidim.rb}
R db/migrate/{20210715092954_add_uniqueness_field_to_authorizations.decidim.rb => 20210618154872_add_uniqueness_field_to_authorizations.decidim.rb}
R db/migrate/{20210715092955_create_user_groups.decidim.rb => 20210618154873_create_user_groups.decidim.rb}
R db/migrate/{20210715092956_create_user_group_memberships.decidim.rb => 20210618154874_create_user_group_memberships.decidim.rb}
R db/migrate/{20210715092957_add_show_statistics_to_organization.decidim.rb => 20210618154875_add_show_statistics_to_organization.decidim.rb}
R db/migrate/{20210715092958_add_user_groups_verified.decidim.rb => 20210618154876_add_user_groups_verified.decidim.rb}
R db/migrate/{20210715092959_add_avatar_to_user_groups.decidim.rb => 20210618154877_add_avatar_to_user_groups.decidim.rb}
R db/migrate/{20210715092960_add_weight_to_features.decidim.rb => 20210618154878_add_weight_to_features.decidim.rb}
R db/migrate/{20210715092961_change_user_groups_verified_to_timestamp.decidim.rb => 20210618154879_change_user_groups_verified_to_timestamp.decidim.rb}
R db/migrate/{20210715092962_add_timestamps_to_identities.decidim.rb => 20210618154880_add_timestamps_to_identities.decidim.rb}
R db/migrate/{20210715092963_add_favicon_to_decidim_organizations.decidim.rb => 20210618154881_add_favicon_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715092964_add_action_permissions_to_decidim_features.decidim.rb => 20210618154882_add_action_permissions_to_decidim_features.decidim.rb}
R db/migrate/{20210715092965_add_comments_and_replies_notifications_to_users.decidim.rb => 20210618154883_add_comments_and_replies_notifications_to_users.decidim.rb}
R db/migrate/{20210715092966_add_newsletter_notifications_to_users.decidim.rb => 20210618154884_add_newsletter_notifications_to_users.decidim.rb}
R db/migrate/{20210715092967_add_published_at_to_decidim_features.decidim.rb => 20210618154885_add_published_at_to_decidim_features.decidim.rb}
R db/migrate/{20210715092968_add_social_media_handlers_to_organization.decidim.rb => 20210618154886_add_social_media_handlers_to_organization.decidim.rb}
R db/migrate/{20210715092969_add_organization_logo_and_url.decidim.rb => 20210618154887_add_organization_logo_and_url.decidim.rb}
R db/migrate/{20210715092970_create_decidim_newsletters.decidim.rb => 20210618154888_create_decidim_newsletters.decidim.rb}
R db/migrate/{20210715092971_add_organization_custom_reference.decidim.rb => 20210618154889_add_organization_custom_reference.decidim.rb}
R db/migrate/{20210715092972_add_secondary_hosts_to_organizations.decidim.rb => 20210618154890_add_secondary_hosts_to_organizations.decidim.rb}
R db/migrate/{20210715092973_create_reports.decidim.rb => 20210618154891_create_reports.decidim.rb}
R db/migrate/{20210715092974_create_moderations.decidim.rb => 20210618154892_create_moderations.decidim.rb}
R db/migrate/{20210715092975_add_available_authorizations_to_organization.decidim.rb => 20210618154893_add_available_authorizations_to_organization.decidim.rb}
R db/migrate/{20210715092976_change_decidim_user_email_index_uniqueness.decidim.rb => 20210618154894_change_decidim_user_email_index_uniqueness.decidim.rb}
R db/migrate/{20210715092977_add_organization_to_identities.decidim.rb => 20210618154895_add_organization_to_identities.decidim.rb}
R db/migrate/{20210715092978_change_decidim_identities_provider_uid_index_uniqueness.decidim.rb => 20210618154896_change_decidim_identities_provider_uid_index_uniqueness.decidim.rb}
R db/migrate/{20210715092979_add_rejected_at_to_user_groups.decidim.rb => 20210618154897_add_rejected_at_to_user_groups.decidim.rb}
R db/migrate/{20210715092980_add_deleted_fields_to_users.decidim.rb => 20210618154898_add_deleted_fields_to_users.decidim.rb}
R db/migrate/{20210715092981_add_hierarchy_to_scopes.decidim.rb => 20210618154899_add_hierarchy_to_scopes.decidim.rb}
R db/migrate/{20210715092982_set_email_unique_in_organization_conditional.decidim.rb => 20210618154900_set_email_unique_in_organization_conditional.decidim.rb}
R db/migrate/{20210715092983_add_organization_to_user_groups.decidim.rb => 20210618154901_add_organization_to_user_groups.decidim.rb}
R db/migrate/{20210715092984_add_uniqueness_to_name_and_document_number_to_user_groups.decidim.rb => 20210618154902_add_uniqueness_to_name_and_document_number_to_user_groups.decidim.rb}
R db/migrate/{20210715092985_create_decidim_categorizations.decidim.rb => 20210618154903_create_decidim_categorizations.decidim.rb}
R db/migrate/{20210715092986_add_admin_to_users.decidim.rb => 20210618154904_add_admin_to_users.decidim.rb}
R db/migrate/{20210715092987_migrate_user_roles_to_participatory_process_roles.decidim.rb => 20210618154905_migrate_user_roles_to_participatory_process_roles.decidim.rb}
R db/migrate/{20210715092988_make_moderations_polymorphic.decidim.rb => 20210618154906_make_moderations_polymorphic.decidim.rb}
R db/migrate/{20210715092989_add_managed_to_users.decidim.rb => 20210618154907_add_managed_to_users.decidim.rb}
R db/migrate/{20210715092990_set_email_unique_in_organization_condition_for_managed_users.decidim.rb => 20210618154908_set_email_unique_in_organization_condition_for_managed_users.decidim.rb}
R db/migrate/{20210715092991_create_impersonation_logs.decidim.rb => 20210618154909_create_impersonation_logs.decidim.rb}
R db/migrate/{20210715092992_make_categories_polymorphic.decidim.rb => 20210618154910_make_categories_polymorphic.decidim.rb}
R db/migrate/{20210715092993_add_roles_to_users.decidim.rb => 20210618154911_add_roles_to_users.decidim.rb}
R db/migrate/{20210715092994_create_decidim_follows.decidim.rb => 20210618154912_create_decidim_follows.decidim.rb}
R db/migrate/{20210715092995_create_decidim_notifications.decidim.rb => 20210618154913_create_decidim_notifications.decidim.rb}
R db/migrate/{20210715092996_add_extra_to_notifications.decidim.rb => 20210618154914_add_extra_to_notifications.decidim.rb}
R db/migrate/{20210715092997_add_emails_on_notifications_flag_to_user.decidim.rb => 20210618154915_add_emails_on_notifications_flag_to_user.decidim.rb}
R db/migrate/{20210715092998_add_header_snippets_to_organizations.decidim.rb => 20210618154916_add_header_snippets_to_organizations.decidim.rb}
R db/migrate/{20210715092999_remove_followable_index_from_follows.decidim.rb => 20210618154917_remove_followable_index_from_follows.decidim.rb}
R db/migrate/{20210715093000_remove_comment_and_replies_notifications_from_users.decidim.rb => 20210618154918_remove_comment_and_replies_notifications_from_users.decidim.rb}
R db/migrate/{20210715093001_add_status_to_authorizations.decidim.rb => 20210618154919_add_status_to_authorizations.decidim.rb}
R db/migrate/{20210715093002_add_verification_metadata_to_authorizations.decidim.rb => 20210618154920_add_verification_metadata_to_authorizations.decidim.rb}
R db/migrate/{20210715093003_add_verification_attachment_to_authorizations.decidim.rb => 20210618154921_add_verification_attachment_to_authorizations.decidim.rb}
R db/migrate/{20210715093004_add_cta_button_url_and_text_to_organization.decidim.rb => 20210618154922_add_cta_button_url_and_text_to_organization.decidim.rb}
R db/migrate/{20210715093005_create_decidim_messaging.decidim.rb => 20210618154923_create_decidim_messaging.decidim.rb}
R db/migrate/{20210715093006_create_versions.decidim.rb => 20210618154924_create_versions.decidim.rb}
R db/migrate/{20210715093007_add_object_changes_to_versions.decidim.rb => 20210618154925_add_object_changes_to_versions.decidim.rb}
R db/migrate/{20210715093008_create_decidim_receipts.decidim.rb => 20210618154926_create_decidim_receipts.decidim.rb}
R db/migrate/{20210715093009_create_decidim_attachment_collections.decidim.rb => 20210618154927_create_decidim_attachment_collections.decidim.rb}
R db/migrate/{20210715093010_create_unique_nicknames.decidim.rb => 20210618154928_create_unique_nicknames.decidim.rb}
R db/migrate/{20210715093011_extend_user_profile.decidim.rb => 20210618154929_extend_user_profile.decidim.rb}
R db/migrate/{20210715093012_add_enable_omnipresent_banner_to_decidim_organizations.decidim.rb => 20210618154930_add_enable_omnipresent_banner_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093013_add_omnipresent_banner_title_to_decidim_organizations.decidim.rb => 20210618154931_add_omnipresent_banner_title_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093014_add_omnipresent_banner_short_description_to_decidim_organizations.decidim.rb => 20210618154932_add_omnipresent_banner_short_description_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093015_add_omnipresent_banner_url_to_decidim_organizations.decidim.rb => 20210618154933_add_omnipresent_banner_url_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093016_add_highlighted_content_banner_to_decidim_organizations.decidim.rb => 20210618154934_add_highlighted_content_banner_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093017_add_action_log.decidim.rb => 20210618154935_add_action_log.decidim.rb}
R db/migrate/{20210715093018_fix_reference_for_all_resources.decidim.rb => 20210618154936_fix_reference_for_all_resources.decidim.rb}
R db/migrate/{20210715093019_create_participatory_space_private_users.decidim.rb => 20210618154937_create_participatory_space_private_users.decidim.rb}
R db/migrate/{20210715093020_create_decidim_searchable_resource.decidim.rb => 20210618154938_create_decidim_searchable_resource.decidim.rb}
R db/migrate/{20210715093021_create_decidim_area_types.decidim.rb => 20210618154939_create_decidim_area_types.decidim.rb}
R db/migrate/{20210715093022_create_decidim_areas.decidim.rb => 20210618154940_create_decidim_areas.decidim.rb}
R db/migrate/{20210715093023_fix_nickname_index.decidim.rb => 20210618154941_fix_nickname_index.decidim.rb}
R db/migrate/{20210715093024_add_version_to_action_logs.decidim.rb => 20210618154942_add_version_to_action_logs.decidim.rb}
R db/migrate/{20210715093025_create_participatory_space_links.decidim.rb => 20210618154943_create_participatory_space_links.decidim.rb}
R db/migrate/{20210715093026_rename_features_to_components.decidim.rb => 20210618154944_rename_features_to_components.decidim.rb}
R db/migrate/{20210715093027_doorkeeper_models.decidim.rb => 20210618154945_doorkeeper_models.decidim.rb}
R db/migrate/{20210715093028_rename_maximum_votes_per_proposal_to_threshold_per_proposal.decidim.rb => 20210618154946_rename_maximum_votes_per_proposal_to_threshold_per_proposal.decidim.rb}
R db/migrate/{20210715093029_change_event_name_and_class_to_rename_to_publish_proposal_event.decidim.rb => 20210618154947_change_event_name_and_class_to_rename_to_publish_proposal_event.decidim.rb}
R db/migrate/{20210715093030_create_coauthorships.decidim.rb => 20210618154948_create_coauthorships.decidim.rb}
R db/migrate/{20210715093031_add_tos_version_to_organization.decidim.rb => 20210618154949_add_tos_version_to_organization.decidim.rb}
R db/migrate/{20210715093032_add_accepted_tos_version_field_to_users.decidim.rb => 20210618154950_add_accepted_tos_version_field_to_users.decidim.rb}
R db/migrate/{20210715093033_change_newsletter_notification_type_value.decidim.rb => 20210618154951_change_newsletter_notification_type_value.decidim.rb}
R db/migrate/{20210715093034_rename_missing_features_to_components.decidim.rb => 20210618154952_rename_missing_features_to_components.decidim.rb}
R db/migrate/{20210715093035_create_decidim_resource_permissions.decidim.rb => 20210618154953_create_decidim_resource_permissions.decidim.rb}
R db/migrate/{20210715093036_create_decidim_metrics.decidim.rb => 20210618154954_create_decidim_metrics.decidim.rb}
R db/migrate/{20210715093037_add_nickname_to_managed_users.decidim.rb => 20210618154955_add_nickname_to_managed_users.decidim.rb}
R db/migrate/{20210715093038_fix_result_follows.decidim.rb => 20210618154956_fix_result_follows.decidim.rb}
R db/migrate/{20210715093039_create_decidim_amendments.decidim.rb => 20210618154957_create_decidim_amendments.decidim.rb}
R db/migrate/{20210715093040_add_content_blocks.decidim.rb => 20210618154958_add_content_blocks.decidim.rb}
R db/migrate/{20210715093041_create_decidim_hashtags.decidim.rb => 20210618154959_create_decidim_hashtags.decidim.rb}
R db/migrate/{20210715093042_add_core_content_blocks.decidim.rb => 20210618154960_add_core_content_blocks.decidim.rb}
R db/migrate/{20210715093043_rename_content_block_options_to_settings.decidim.rb => 20210618154961_rename_content_block_options_to_settings.decidim.rb}
R db/migrate/{20210715093044_add_badge_scores.decidim.rb => 20210618154962_add_badge_scores.decidim.rb}
R db/migrate/{20210715093045_add_images_to_content_blocks.decidim.rb => 20210618154963_add_images_to_content_blocks.decidim.rb}
R db/migrate/{20210715093046_move_organization_fields_to_hero_content_block.decidim.rb => 20210618154964_move_organization_fields_to_hero_content_block.decidim.rb}
R db/migrate/{20210715093047_add_visibility_to_action_logs.decidim.rb => 20210618154965_add_visibility_to_action_logs.decidim.rb}
R db/migrate/{20210715093048_move_users_groups_to_users_table.decidim.rb => 20210618154966_move_users_groups_to_users_table.decidim.rb}
R db/migrate/{20210715093049_add_badge_switch_to_organizations.decidim.rb => 20210618154967_add_badge_switch_to_organizations.decidim.rb}
R db/migrate/{20210715093050_create_decidim_continuity_badge_statuses.decidim.rb => 20210618154968_create_decidim_continuity_badge_statuses.decidim.rb}
R db/migrate/{20210715093051_add_roles_to_memberships.decidim.rb => 20210618154969_add_roles_to_memberships.decidim.rb}
R db/migrate/{20210715093052_make_authors_polymorphic.decidim.rb => 20210618154970_make_authors_polymorphic.decidim.rb}
R db/migrate/{20210715093053_add_columns_to_pages.decidim.rb => 20210618154971_add_columns_to_pages.decidim.rb}
R db/migrate/{20210715093054_add_static_page_topics.decidim.rb => 20210618154972_add_static_page_topics.decidim.rb}
R db/migrate/{20210715093055_add_timestamps_to_components.decidim.rb => 20210618154973_add_timestamps_to_components.decidim.rb}
R db/migrate/{20210715093056_fix_user_follows.decidim.rb => 20210618154974_fix_user_follows.decidim.rb}
R db/migrate/{20210715093057_add_welcome_notification.decidim.rb => 20210618154975_add_welcome_notification.decidim.rb}
R db/migrate/{20210715093058_destroy_deleted_users_follows.decidim.rb => 20210618154976_destroy_deleted_users_follows.decidim.rb}
R db/migrate/{20210715093059_add_users_registration_mode_to_organizations.decidim.rb => 20210618154977_add_users_registration_mode_to_organizations.decidim.rb}
R db/migrate/{20210715093060_create_decidim_contextual_help_sections.decidim.rb => 20210618154978_create_decidim_contextual_help_sections.decidim.rb}
R db/migrate/{20210715093061_add_following_and_followers_counters_to_users.decidim.rb => 20210618154979_add_following_and_followers_counters_to_users.decidim.rb}
R db/migrate/{20210715093062_add_columns_to_static_page_topic.decidim.rb => 20210618154980_add_columns_to_static_page_topic.decidim.rb}
R db/migrate/{20210715093063_add_id_documents_fields_to_org.decidim.rb => 20210618154981_add_id_documents_fields_to_org.decidim.rb}
R db/migrate/{20210715093064_remove_following_users_count_from_users.decidim.rb => 20210618154982_remove_following_users_count_from_users.decidim.rb}
R db/migrate/{20210715093065_add_scope_to_action_logs.decidim.rb => 20210618154983_add_scope_to_action_logs.decidim.rb}
R db/migrate/{20210715093066_add_area_to_action_logs.decidim.rb => 20210618154984_add_area_to_action_logs.decidim.rb}
R db/migrate/{20210715093067_add_notification_types_to_users.decidim.rb => 20210618154985_add_notification_types_to_users.decidim.rb}
R db/migrate/{20210715093068_add_user_groups_switch_to_organizations.decidim.rb => 20210618154986_add_user_groups_switch_to_organizations.decidim.rb}
R db/migrate/{20210715093069_add_smtp_settings_to_decidim_organizations.decidim.rb => 20210618154987_add_smtp_settings_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093070_add_colors_to_decidim_organization.decidim.rb => 20210618154988_add_colors_to_decidim_organization.decidim.rb}
R db/migrate/{20210715093071_add_extended_data_to_newsletters.decidim.rb => 20210618154989_add_extended_data_to_newsletters.decidim.rb}
R db/migrate/{20210715093072_add_missing_indexes.decidim.rb => 20210618154990_add_missing_indexes.decidim.rb}
R db/migrate/{20210715093073_fix_user_names.decidim.rb => 20210618154991_fix_user_names.decidim.rb}
R db/migrate/{20210715093074_add_force_users_to_authenticate_before_access_organization.decidim.rb => 20210618154992_add_force_users_to_authenticate_before_access_organization.decidim.rb}
R db/migrate/{20210715093075_add_confidential_to_doorkeeper_application.decidim.rb => 20210618154993_add_confidential_to_doorkeeper_application.decidim.rb}
R db/migrate/{20210715093076_add_uniq_index_to_decidim_metrics.decidim.rb => 20210618154994_add_uniq_index_to_decidim_metrics.decidim.rb}
R db/migrate/{20210715093077_add_lockable_to_users.decidim.rb => 20210618154995_add_lockable_to_users.decidim.rb}
R db/migrate/{20210715093078_add_omniauth_settings_to_decidim_organization.decidim.rb => 20210618154996_add_omniauth_settings_to_decidim_organization.decidim.rb}
R db/migrate/{20210715093079_add_rich_text_editor_in_public_views_to_organizations.decidim.rb => 20210618154997_add_rich_text_editor_in_public_views_to_organizations.decidim.rb}
R db/migrate/{20210715093080_add_weight_to_categories.decidim.rb => 20210618154998_add_weight_to_categories.decidim.rb}
R db/migrate/{20210715093081_add_admin_terms_of_use_body_field_to_organization.decidim.rb => 20210618154999_add_admin_terms_of_use_body_field_to_organization.decidim.rb}
R db/migrate/{20210715093082_create_decidim_endorsements.decidim.rb => 20210618155000_create_decidim_endorsements.decidim.rb}
R db/migrate/{20210715093083_add_session_token_to_users.decidim.rb => 20210618155001_add_session_token_to_users.decidim.rb}
R db/migrate/{20210715093084_remove_continuity_badges.decidim.rb => 20210618155002_remove_continuity_badges.decidim.rb}
R db/migrate/{20210715093085_add_organization_timezone.decidim.rb => 20210618155003_add_organization_timezone.decidim.rb}
R db/migrate/{20210715093086_add_direct_message_types_to_users.decidim.rb => 20210618155004_add_direct_message_types_to_users.decidim.rb}
R db/migrate/{20210715093087_index_foreign_keys_in_decidim_action_logs.decidim.rb => 20210618155005_index_foreign_keys_in_decidim_action_logs.decidim.rb}
R db/migrate/{20210715093088_index_foreign_keys_in_decidim_amendments.decidim.rb => 20210618155006_index_foreign_keys_in_decidim_amendments.decidim.rb}
R db/migrate/{20210715093089_index_foreign_keys_in_decidim_authorizations.decidim.rb => 20210618155007_index_foreign_keys_in_decidim_authorizations.decidim.rb}
R db/migrate/{20210715093090_index_foreign_keys_in_decidim_contextual_help_sections.decidim.rb => 20210618155008_index_foreign_keys_in_decidim_contextual_help_sections.decidim.rb}
R db/migrate/{20210715093091_index_foreign_keys_in_decidim_endorsements.decidim.rb => 20210618155009_index_foreign_keys_in_decidim_endorsements.decidim.rb}
R db/migrate/{20210715093092_index_foreign_keys_in_decidim_notifications.decidim.rb => 20210618155010_index_foreign_keys_in_decidim_notifications.decidim.rb}
R db/migrate/{20210715093093_index_foreign_keys_in_oauth_access_grants.decidim.rb => 20210618155011_index_foreign_keys_in_oauth_access_grants.decidim.rb}
R db/migrate/{20210715093094_add_id_to_content_blocks_scope.decidim.rb => 20210618155012_add_id_to_content_blocks_scope.decidim.rb}
R db/migrate/{20210715093095_rename_scope_column.decidim.rb => 20210618155013_rename_scope_column.decidim.rb}
R db/migrate/{20210715093096_migrate_newsletters_to_templates.decidim.rb => 20210618155014_migrate_newsletters_to_templates.decidim.rb}
R db/migrate/{20210715093097_remove_newsletter_body.decidim.rb => 20210618155015_remove_newsletter_body.decidim.rb}
R db/migrate/{20210715093098_add_index_on_content_block_scope_id.decidim.rb => 20210618155016_add_index_on_content_block_scope_id.decidim.rb}
R db/migrate/{20210715093099_add_enable_machine_translation_to_decidim_organizations.decidim.rb => 20210618155017_add_enable_machine_translation_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093100_create_decidim_share_tokens.decidim.rb => 20210618155018_create_decidim_share_tokens.decidim.rb}
R db/migrate/{20210715093101_add_comments_max_length_to_decidim_organization.decidim.rb => 20210618155019_add_comments_max_length_to_decidim_organization.decidim.rb}
R db/migrate/{20210715093102_add_file_upload_settings_to_decidim_organizations.decidim.rb => 20210618155020_add_file_upload_settings_to_decidim_organizations.decidim.rb}
R db/migrate/{20210715093103_add_machine_translation_display_priority_to_organizations.decidim.rb => 20210618155021_add_machine_translation_display_priority_to_organizations.decidim.rb}
R db/migrate/{20210715093104_remove_show_statistics_from_organizations.decidim.rb => 20210618155022_remove_show_statistics_from_organizations.decidim.rb}
R db/migrate/{20210715093105_remove_notifications_with_continuity_badge.decidim.rb => 20210618155023_remove_notifications_with_continuity_badge.decidim.rb}
R db/migrate/{20210715093106_create_decidim_user_moderations.decidim.rb => 20210618155024_create_decidim_user_moderations.decidim.rb}
R db/migrate/{20210715093107_create_decidim_user_reports.decidim.rb => 20210618155025_create_decidim_user_reports.decidim.rb}
R db/migrate/{20210715093108_add_suspension_fields_to_decidim_users.decidim.rb => 20210618155026_add_suspension_fields_to_decidim_users.decidim.rb}
R db/migrate/{20210715093109_create_decidim_user_suspensions.decidim.rb => 20210618155027_create_decidim_user_suspensions.decidim.rb}
R db/migrate/{20210715093110_add_current_suspension_id_to_decidim_users.decidim.rb => 20210618155028_add_current_suspension_id_to_decidim_users.decidim.rb}
R db/migrate/{20210715093111_add_reported_content_to_moderations.decidim.rb => 20210618155029_add_reported_content_to_moderations.decidim.rb}
R db/migrate/{20210715093112_add_locale_to_moderation_reports.decidim.rb => 20210618155030_add_locale_to_moderation_reports.decidim.rb}
R db/migrate/{20210715093113_encrypt_authorization_metadatas.decidim.rb => 20210618155031_encrypt_authorization_metadatas.decidim.rb}
R db/migrate/{20210715093114_add_allow_public_access_to_static_pages.decidim.rb => 20210618155032_add_allow_public_access_to_static_pages.decidim.rb}
R db/migrate/{20210715093115_update_table_block_user_functionality.decidim.rb => 20210618155033_update_table_block_user_functionality.decidim.rb}
R db/migrate/{20210715093116_rename_decidim_user_fields_for_block_functionality.decidim.rb => 20210618155034_rename_decidim_user_fields_for_block_functionality.decidim.rb}
R db/migrate/{20210715093117_add_email_on_moderations_to_users.decidim.rb => 20210618155035_add_email_on_moderations_to_users.decidim.rb}
R db/migrate/{20210715093118_invalidate_all_sessions_for_deleted_users.decidim.rb => 20210618155036_invalidate_all_sessions_for_deleted_users.decidim.rb}
R db/migrate/{20210715093119_add_followable_counter_cache_to_users.decidim.rb => 20210618155037_add_followable_counter_cache_to_users.decidim.rb}
R db/migrate/{20210715093120_devise_create_decidim_admins.decidim_system.rb => 20210618155038_devise_create_decidim_admins.decidim_system.rb}
R db/migrate/{20210715093121_add_admin_participatory_process_user_roles.decidim_admin.rb => 20210618155039_add_admin_participatory_process_user_roles.decidim_admin.rb}
R db/migrate/{20210715093122_rename_participatory_process_user_roles_table.decidim_admin.rb => 20210618155040_rename_participatory_process_user_roles_table.decidim_admin.rb}
R db/migrate/{20210715093123_add_officialization_to_users.decidim_admin.rb => 20210618155041_add_officialization_to_users.decidim_admin.rb}
R db/migrate/{20210715093124_add_reason_to_decidim_impersonation_logs.decidim_admin.rb => 20210618155042_add_reason_to_decidim_impersonation_logs.decidim_admin.rb}
R db/migrate/{20210715093125_add_accepted_admin_terms_at_field_to_users.decidim_admin.rb => 20210618155043_add_accepted_admin_terms_at_field_to_users.decidim_admin.rb}
R db/migrate/{20210715093126_create_decidim_forms_questionnaires.decidim_forms.rb => 20210618155044_create_decidim_forms_questionnaires.decidim_forms.rb}
R db/migrate/{20210715093127_create_decidim_forms_questions.decidim_forms.rb => 20210618155045_create_decidim_forms_questions.decidim_forms.rb}
R db/migrate/{20210715093128_create_decidim_forms_answers.decidim_forms.rb => 20210618155046_create_decidim_forms_answers.decidim_forms.rb}
R db/migrate/{20210715093129_create_decidim_forms_answer_options.decidim_forms.rb => 20210618155047_create_decidim_forms_answer_options.decidim_forms.rb}
R db/migrate/{20210715093130_create_decidim_forms_answer_choices.decidim_forms.rb => 20210618155048_create_decidim_forms_answer_choices.decidim_forms.rb}
R db/migrate/{20210715093131_add_session_token_to_decidim_forms_answers.decidim_forms.rb => 20210618155049_add_session_token_to_decidim_forms_answers.decidim_forms.rb}
R db/migrate/{20210715093132_add_ip_hash_to_decidim_form_answers.decidim_forms.rb => 20210618155050_add_ip_hash_to_decidim_form_answers.decidim_forms.rb}
R db/migrate/{20210715093133_create_decidim_forms_display_conditions.decidim_forms.rb => 20210618155051_create_decidim_forms_display_conditions.decidim_forms.rb}
A db/migrate/20210618155052_create_decidim_forms_question_matrix_rows.decidim_forms.rb
A db/migrate/20210618155053_add_matrix_row_id_to_decidim_forms_answer_choices.decidim_forms.rb
A db/migrate/20210618155054_add_salt_to_decidim_forms_questionnaires.decidim_forms.rb
A db/migrate/20210618155055_add_max_characters_to_decidim_forms_questions.decidim_forms.rb
R db/migrate/{20210715093138_move_authorizations_to_new_api.decidim_verifications.rb => 20210618155056_move_authorizations_to_new_api.decidim_verifications.rb}
A db/migrate/20210618155057_create_decidim_verifications_csv_data.decidim_verifications.rb
A db/migrate/20210618155058_create_decidim_verifications_conflicts.decidim_verifications.rb
A db/migrate/20210618155059_add_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155060_translate_processes.decidim_participatory_processes.rb
A db/migrate/20210618155061_add_hero_image_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155062_add_banner_image_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155063_add_promoted_flag_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155064_add_participatory_process_steps.decidim_participatory_processes.rb
A db/migrate/20210618155065_add_active_flag_to_step.decidim_participatory_processes.rb
A db/migrate/20210618155066_add_position_to_steps.decidim_participatory_processes.rb
A db/migrate/20210618155067_add_published_at_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155068_remove_not_null_on_step_position.decidim_participatory_processes.rb
A db/migrate/20210618155069_add_index_for_process_slug_organization.decidim_participatory_processes.rb
A db/migrate/20210618155070_create_attachments.decidim_participatory_processes.rb
A db/migrate/20210618155071_loosen_step_requirements.decidim_participatory_processes.rb
A db/migrate/20210618155072_make_attachments_polymorphic.decidim_participatory_processes.rb
A db/migrate/20210618155073_rename_attachable_to_attached_to.decidim_participatory_processes.rb
A db/migrate/20210618155074_add_extra_info_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155075_rename_extra_info_on_processes.decidim_participatory_processes.rb
A db/migrate/20210618155076_remove_steps_short_description.decidim_participatory_processes.rb
A db/migrate/20210618155077_add_scopes_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155078_add_participatory_process_groups.decidim_participatory_processes.rb
A db/migrate/20210618155079_change_steps_end_and_start_date_to_date.decidim_participatory_processes.rb
A db/migrate/20210618155080_make_features_polymorphic.decidim_participatory_processes.rb
A db/migrate/20210618155081_add_show_statistics_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155082_attachment_description_nullable.decidim_participatory_processes.rb
A db/migrate/20210618155083_add_announcement_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155084_add_scopes_enabled_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155085_add_start_date_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155086_add_weight_to_attachments.decidim_participatory_processes.rb
A db/migrate/20210618155087_add_attachment_collection_to_attachments.decidim_participatory_processes.rb
A db/migrate/20210618155088_add_private_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155089_add_reference_to_processes.decidim_participatory_processes.rb
A db/migrate/20210618155090_add_cta_url_and_text_to_steps.decidim_participatory_processes.rb
A db/migrate/20210618155091_add_area_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155092_add_scope_type_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155093_add_show_metrics_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155094_index_foreign_keys_in_decidim_attachments.decidim_participatory_processes.rb
A db/migrate/20210618155095_index_foreign_keys_in_decidim_participatory_process_user_roles.decidim_participatory_processes.rb
A db/migrate/20210618155096_index_foreign_keys_in_decidim_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155097_fix_attachments_titles.decidim_participatory_processes.rb
A db/migrate/20210618155098_add_hashtag_to_participatory_process_groups.decidim_participatory_processes.rb
A db/migrate/20210618155099_add_metadata_columns_to_participatory_process_groups.decidim_participatory_processes.rb
A db/migrate/20210618155100_rename_name_column_to_title_in_decidim_participatory_process_groups.decidim_participatory_processes.rb
A db/migrate/20210618155101_add_promoted_flag_to_decidim_participatory_process_groups.decidim_participatory_processes.rb
A db/migrate/20210618155102_add_weight_field_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155103_add_followable_counter_cache_to_participatory_processes.decidim_participatory_processes.rb
A db/migrate/20210618155104_add_assemblies.decidim_assemblies.rb
A db/migrate/20210618155105_add_scopes_enabled_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155106_add_assembly_user_roles.decidim_assemblies.rb
A db/migrate/20210618155107_add_private_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155108_add_reference_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155109_add_area_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155110_add_parent_child_relation_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155111_add_fields_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155112_add_assembly_members.decidim_assemblies.rb
A db/migrate/20210618155113_assembly_member_belongs_to_user.decidim_assemblies.rb
A db/migrate/20210618155114_update_assembly_members_index.decidim_assemblies.rb
A db/migrate/20210618155115_reset_negative_children_count_counters.decidim_assemblies.rb
A db/migrate/20210618155116_create_decidim_assembly_types.decidim_assemblies.rb
R db/migrate/{20210715093199_migrate_decidim_assembly_types.decidim_assemblies.rb => 20210618155117_migrate_decidim_assembly_types.decidim_assemblies.rb}
A db/migrate/20210618155118_index_foreign_keys_in_decidim_assemblies.decidim_assemblies.rb
A db/migrate/20210618155119_index_foreign_keys_in_decidim_assembly_user_roles.decidim_assemblies.rb
A db/migrate/20210618155120_remove_legacy_decidim_assembly_type.decidim_assemblies.rb
A db/migrate/20210618155121_create_decidim_assemblies_settings.decidim_assemblies.rb
A db/migrate/20210618155122_add_weight_field_to_assembly.decidim_assemblies.rb
A db/migrate/20210618155123_add_followable_counter_cache_to_assemblies.decidim_assemblies.rb
A db/migrate/20210618155124_create_decidim_pages.decidim_pages.rb
A db/migrate/20210618155125_add_commentable_to_pages.decidim_pages.rb
A db/migrate/20210618155126_remove_commentable_flag_from_pages.decidim_pages.rb
A db/migrate/20210618155127_remove_page_feature_titles.decidim_pages.rb
A db/migrate/20210618155128_rename_features_to_components_at_pages.decidim_pages.rb
A db/migrate/20210618155129_create_comments.decidim_comments.rb
A db/migrate/20210618155130_add_depth_to_comments.decidim_comments.rb
A db/migrate/20210618155131_add_alignment_to_comments.decidim_comments.rb
A db/migrate/20210618155132_create_comment_votes.decidim_comments.rb
A db/migrate/20210618155133_add_user_group_id_to_comments.decidim_comments.rb
A db/migrate/20210618155134_add_root_commentable_to_comments.decidim_comments.rb
A db/migrate/20210618155135_update_root_commentable_for_comments.decidim_comments.rb
A db/migrate/20210618155136_set_root_commentable_null_constraints.decidim_comments.rb
A db/migrate/20210618155137_fix_user_groups_ids_in_comments.decidim_comments.rb
A db/migrate/20210618155138_make_authors_polymorphic_for_comments.decidim_comments.rb
A db/migrate/20210618155139_make_author_polymorphic_for_comment_votes.decidim_comments.rb
A db/migrate/20210618155140_index_foreign_keys_in_decidim_comments_comments.decidim_comments.rb
A db/migrate/20210618155141_make_comments_handle_i18n.decidim_comments.rb
A db/migrate/20210618155142_add_commentable_counter_cache_to_comments.decidim_comments.rb
A db/migrate/20210618155143_create_meetings.decidim_meetings.rb
A db/migrate/20210618155144_close_a_meeting.decidim_meetings.rb
A db/migrate/20210618155145_add_latitude_and_longitude_to_meetings.decidim_meetings.rb
A db/migrate/20210618155146_remove_short_description_from_meetings.decidim_meetings.rb
A db/migrate/20210618155147_add_reference_to_meetings.decidim_meetings.rb
A db/migrate/20210618155148_remove_not_null_reference_meetings.decidim_meetings.rb
A db/migrate/20210618155149_migrate_meetings_category.decidim_meetings.rb
A db/migrate/20210618155150_add_registration_attributes_to_meetings.decidim_meetings.rb
A db/migrate/20210618155151_create_registrations.decidim_meetings.rb
A db/migrate/20210618155152_rename_features_to_components_at_meetings.decidim_meetings.rb
A db/migrate/20210618155153_add_fields_for_registrations.decidim_meetings.rb
A db/migrate/20210618155154_add_meeting_types.decidim_meetings.rb
A db/migrate/20210618155155_add_organizer_to_meetings.decidim_meetings.rb
A db/migrate/20210618155156_create_meetings_minutes.decidim_meetings.rb
A db/migrate/20210618155157_add_services_to_meetings.decidim_meetings.rb
A db/migrate/20210618155158_create_decidim_agendas.decidim_meetings.rb
A db/migrate/20210618155159_create_decidim_agenda_items.decidim_meetings.rb
A db/migrate/20210618155160_create_decidim_meetings_invites.decidim_meetings.rb
A db/migrate/20210618155161_add_code_to_decidim_meetings_registrations.decidim_meetings.rb
A db/migrate/20210618155162_add_validated_at_to_decidim_meetings_registrations.decidim_meetings.rb
A db/migrate/20210618155163_add_registration_form_enabled_to_decidim_meetings.decidim_meetings.rb
A db/migrate/20210618155164_add_upcoming_events_as_content_block.decidim_meetings.rb
A db/migrate/20210618155165_add_questionnaire_to_existing_meetings.decidim_meetings.rb
A db/migrate/20210618155166_add_user_group_to_meetings_registrations.decidim_meetings.rb
A db/migrate/20210618155167_index_foreign_keys_in_decidim_meetings_registrations.decidim_meetings.rb
A db/migrate/20210618155168_add_author_to_meetings.decidim_meetings.rb
A db/migrate/20210618155169_create_meeting_services_table.decidim_meetings.rb
A db/migrate/20210618155170_move_meeting_services_to_own_model.decidim_meetings.rb
A db/migrate/20210618155171_add_commentable_counter_cache_to_meetings.decidim_meetings.rb
A db/migrate/20210618155172_add_online_meeting_url.decidim_meetings.rb
A db/migrate/20210618155173_add_type_of_meeting.decidim_meetings.rb
A db/migrate/20210618155174_fix_meetings_registration_terms.decidim_meetings.rb
A db/migrate/20210618155175_add_registration_type_and_url_to_meetings.decidim_meetings.rb
A db/migrate/20210618155176_add_salt_to_decidim_meetings.decidim_meetings.rb
A db/migrate/20210618155177_add_followable_counter_cache_to_meetings.decidim_meetings.rb
A db/migrate/20210618155178_create_decidim_proposals.decidim_proposals.rb
A db/migrate/20210618155179_create_proposal_votes.decidim_proposals.rb
A db/migrate/20210618155180_add_text_search_indexes.decidim_proposals.rb
A db/migrate/20210618155181_add_counter_cache_votes_to_proposals.decidim_proposals.rb
A db/migrate/20210618155182_add_user_group_id_to_proposals.decidim_proposals.rb
A db/migrate/20210618155183_add_answers_to_proposals.decidim_proposals.rb
A db/migrate/20210618155184_add_index_to_decidim_proposals_proposals_proposal_votes_count.decidim_proposals.rb
A db/migrate/20210618155185_create_proposal_reports.decidim_proposals.rb
A db/migrate/20210618155186_add_report_count_to_proposals.decidim_proposals.rb
A db/migrate/20210618155187_add_reference_to_proposals.decidim_proposals.rb
A db/migrate/20210618155188_add_hidden_at_to_proposals.decidim_proposals.rb
A db/migrate/20210618155189_add_geolocalization_fields_to_proposals.decidim_proposals.rb
A db/migrate/20210618155190_migrate_proposal_reports_data_to_reports.decidim_proposals.rb
A db/migrate/20210618155191_remove_not_null_reference_proposals.decidim_proposals.rb
A db/migrate/20210618155192_migrate_proposals_category.decidim_proposals.rb
A db/migrate/20210618155193_create_proposal_endorsements.decidim_proposals.rb
A db/migrate/20210618155194_add_counter_cache_endorsements_to_proposals.decidim_proposals.rb
A db/migrate/20210618155195_enable_pg_trgm_extension_for_proposals.decidim_proposals.rb
A db/migrate/20210618155196_add_published_at_to_proposals.decidim_proposals.rb
A db/migrate/20210618155197_create_decidim_proposal_notes.decidim_proposals.rb
A db/migrate/20210618155198_add_index_created_at_proposal_notes.decidim_proposals.rb
A db/migrate/20210618155199_rename_features_to_components_at_proposals.decidim_proposals.rb
A db/migrate/20210618155200_create_decidim_proposals_collaborative_drafts.decidim_proposals.rb
A db/migrate/20210618155201_fix_nil_threshold_per_proposal.decidim_proposals.rb
A db/migrate/20210618155202_add_counter_cache_coauthorships_to_proposals.decidim_proposals.rb
A db/migrate/20210618155203_move_authorships_to_coauthorships.decidim_proposals.rb
A db/migrate/20210618155204_remove_authorships_from_proposals.decidim_proposals.rb
A db/migrate/20210618155205_create_collaborative_draft_collaborator_requests.decidim_proposals.rb
A db/migrate/20210618155206_add_counter_cache_coauthorships_to_collaborative_drafts.decidim_proposals.rb
A db/migrate/20210618155207_remove_index_counter_cache_coauthorships_to_proposals.decidim_proposals.rb
A db/migrate/20210618155208_create_participatory_texts.decidim_proposals.rb
A db/migrate/20210618155209_add_position_to_proposals.decidim_proposals.rb
A db/migrate/20210618155210_add_participatory_text_level_to_proposals.decidim_proposals.rb
A db/migrate/20210618155211_fix_user_groups_ids_in_proposals_endorsements.decidim_proposals.rb
R db/migrate/{20210715093135_add_matrix_row_id_to_decidim_forms_answer_choices.decidim_forms.rb => 20210618155212_add_temporary_votes.decidim_proposals.rb}
A db/migrate/20210618155213_add_organization_as_author.decidim_proposals.rb
A db/migrate/20210618155214_make_author_polymorhpic_for_proposal_endorsements.decidim_proposals.rb
A db/migrate/20210618155215_add_created_in_meeting.decidim_proposals.rb
A db/migrate/20210618155216_use_md5_indexes.decidim_proposals.rb
A db/migrate/20210618155217_add_endorsements_counter_cache_to_proposals.decidim_proposals.rb
A db/migrate/20210618155218_move_proposal_endorsements_to_core_endorsements.decidim_proposals.rb
A db/migrate/20210618155219_drop_proposal_endorsements.decidim_proposals.rb
A db/migrate/20210618155220_add_proposal_valuation_assignments.decidim_proposals.rb
A db/migrate/20210618155221_add_costs_to_proposals.decidim_proposals.rb
A db/migrate/20210618155222_sync_proposals_state_with_amendments_state.decidim_proposals.rb
A db/migrate/20210618155223_add_state_published_at_to_proposals.decidim_proposals.rb
A db/migrate/20210618155224_publish_existing_proposals_state.decidim_proposals.rb
A db/migrate/20210618155225_move_proposals_fields_to_i18n.decidim_proposals.rb
A db/migrate/20210618155226_move_proposal_endorsed_event_notifications_to_resource_endorsed_event.decidim_proposals.rb
A db/migrate/20210618155227_add_commentable_counter_cache_to_proposals.decidim_proposals.rb
A db/migrate/20210618155228_fix_proposals_data.decidim_proposals.rb
A db/migrate/20210618155229_fix_answered_proposals_after_copy.decidim_proposals.rb
A db/migrate/20210618155230_add_followable_counter_cache_to_proposals.decidim_proposals.rb
A db/migrate/20210618155231_add_followable_counter_cache_to_collaborative_drafts.decidim_proposals.rb
A db/migrate/20210618155232_fix_counters_for_copied_proposals.decidim_proposals.rb
A db/migrate/20210618155233_create_projects.decidim_budgets.rb
A db/migrate/20210618155234_create_orders.decidim_budgets.rb
A db/migrate/20210618155235_create_line_items.decidim_budgets.rb
A db/migrate/20210618155236_remove_short_description_from_decidim_projects.decidim_budgets.rb
A db/migrate/20210618155237_add_reference_to_projects.decidim_budgets.rb
A db/migrate/20210618155238_remove_not_null_reference_budgets.decidim_budgets.rb
A db/migrate/20210618155239_migrate_projects_category.decidim_budgets.rb
A db/migrate/20210618155240_rename_features_to_components_at_budgets.decidim_budgets.rb
A db/migrate/20210618155241_use_big_ints_for_budgets.decidim_budgets.rb
A db/migrate/20210618155242_create_decidim_budgets.decidim_budgets.rb
A db/migrate/20210618155243_rename_budget_to_budget_ammount.decidim_budgets.rb
A db/migrate/20210618155244_add_budget_reference_to_project.decidim_budgets.rb
A db/migrate/20210618155245_add_budget_reference_to_order.decidim_budgets.rb
R db/migrate/{20210715093328_move_budgets_to_own_model.decidim_budgets.rb => 20210618155246_move_budgets_to_own_model.decidim_budgets.rb}
A db/migrate/20210618155247_add_scope_to_budgets.decidim_budgets.rb
A db/migrate/20210618155248_add_selected_at_to_project.decidim_budgets.rb
A db/migrate/20210618155249_votes_enabled_to_votes_choices.decidim_budgets.rb
A db/migrate/20210618155250_add_commentable_counter_cache_to_projects.decidim_budgets.rb
A db/migrate/20210618155251_add_followable_counter_cache_to_budgets.decidim_budgets.rb
A db/migrate/20210618155252_create_decidim_surveys.decidim_surveys.rb
R db/migrate/{20210715093134_create_decidim_forms_question_matrix_rows.decidim_forms.rb => 20210618155253_create_decidim_survey_questions.decidim_surveys.rb}
A db/migrate/20210618155254_create_decidim_survey_answers.decidim_surveys.rb
A db/migrate/20210618155255_add_position_to_surveys_questions.decidim_surveys.rb
A db/migrate/20210618155256_add_mandatory_to_surveys_questions.decidim_surveys.rb
A db/migrate/20210618155257_add_question_type_to_surveys_questions.decidim_surveys.rb
A db/migrate/20210618155258_add_answer_options_to_surveys_questions.decidim_surveys.rb
A db/migrate/20210618155259_rename_features_to_components_at_surveys.decidim_surveys.rb
A db/migrate/20210618155260_add_max_choices_to_survey_questions.decidim_surveys.rb
A db/migrate/20210618155261_add_description_to_decidim_survey_questions.decidim_surveys.rb
A db/migrate/20210618155262_add_choices_to_decidim_survey_answers.decidim_surveys.rb
A db/migrate/20210618155263_create_decidim_survey_answer_options.decidim_surveys.rb
A db/migrate/20210618155264_create_decidim_survey_answer_choices.decidim_surveys.rb
A db/migrate/20210618155265_add_free_text_to_survey_answer_options.decidim_surveys.rb
A db/migrate/20210618155266_add_custom_body_to_survey_answer_choices.decidim_surveys.rb
A db/migrate/20210618155267_add_position_to_decidim_survey_answer_choices.decidim_surveys.rb
R db/migrate/{20210715093350_check_legacy_tables.decidim_surveys.rb => 20210618155268_check_legacy_tables.decidim_surveys.rb}
A db/migrate/20210618155269_remove_survey_answer_choices.decidim_surveys.rb
A db/migrate/20210618155270_remove_survey_answer_options.decidim_surveys.rb
A db/migrate/20210618155271_remove_survey_answers.decidim_surveys.rb
A db/migrate/20210618155272_remove_survey_questions.decidim_surveys.rb
A db/migrate/20210618155273_remove_survey_columns.decidim_surveys.rb
A db/migrate/20210618155274_create_accountability_statuses.decidim_accountability.rb
A db/migrate/20210618155275_create_accountability_results.decidim_accountability.rb
A db/migrate/20210618155276_add_description_and_progress_to_statuses.decidim_accountability.rb
A db/migrate/20210618155277_create_accountability_timeline_entries.decidim_accountability.rb
A db/migrate/20210618155278_migrate_accountability_results_category.decidim_accountability.rb
A db/migrate/20210618155279_add_children_counter_cache_to_results.decidim_accountability.rb
A db/migrate/20210618155280_migrate_old_results.decidim_accountability.rb
A db/migrate/20210618155281_rename_features_to_components_at_accountability.decidim_accountability.rb
A db/migrate/20210618155282_add_weight_to_results.decidim_accountability.rb
A db/migrate/20210618155283_add_external_id_to_results.decidim_accountability.rb
A db/migrate/20210618155284_index_foreign_keys_in_decidim_accountability_results.decidim_accountability.rb
A db/migrate/20210618155285_add_commentable_counter_cache_to_results.decidim_accountability.rb
A db/migrate/20210618155286_create_debates.decidim_debates.rb
A db/migrate/20210618155287_add_debate_information_updates.decidim_debates.rb
A db/migrate/20210618155288_add_author_to_debates.decidim_debates.rb
A db/migrate/20210618155289_add_reference_to_debates.decidim_debates.rb
A db/migrate/20210618155290_add_user_group_author_to_debates.decidim_debates.rb
A db/migrate/20210618155291_drop_category_id_column.decidim_debates.rb
A db/migrate/20210618155292_rename_features_to_components_at_debates.decidim_debates.rb
A db/migrate/20210618155293_fix_user_groups_ids_on_debates.decidim_debates.rb
A db/migrate/20210618155294_add_organization_as_author_to_debates.decidim_debates.rb
A db/migrate/20210618155295_index_foreign_keys_in_decidim_debates_debates.decidim_debates.rb
A db/migrate/20210618155296_close_debates.decidim_debates.rb
A db/migrate/20210618155297_fix_debates_i18n_fields.decidim_debates.rb
A db/migrate/20210618155298_add_endorsable_to_debates.decidim_debates.rb
A db/migrate/20210618155299_add_commentable_counter_cache_to_debates.decidim_debates.rb
A db/migrate/20210618155300_add_cached_comment_metadata_to_debates.decidim_debates.rb
A db/migrate/20210618155301_add_scope_to_debates_debate.decidim_debates.rb
A db/migrate/20210618155302_archive_debates.decidim_debates.rb
A db/migrate/20210618155303_revert_archive_debates.decidim_debates.rb
A db/migrate/20210618155304_add_followable_counter_cache_to_debates.decidim_debates.rb
A db/migrate/20210618155305_create_decidim_module_sortitions_sortitions.decidim_sortitions.rb
A db/migrate/20210618155306_add_witnesses_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155307_add_additional_info_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155308_add_author_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155309_add_reference_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155310_add_title_to_sortition.decidim_sortitions.rb
A db/migrate/20210618155311_drop_decidim_category_id_from_sortitions.decidim_sortitions.rb
A db/migrate/20210618155312_add_cancel_data_to_sortition.decidim_sortitions.rb
A db/migrate/20210618155313_make_sortition_reference_nullable.decidim_sortitions.rb
A db/migrate/20210618155314_add_candidate_proposals_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155315_rename_sortitions_table.decidim_sortitions.rb
A db/migrate/20210618155316_fix_sortitions_feature.decidim_sortitions.rb
A db/migrate/20210618155317_fix_sortitions_proposal_feature.decidim_sortitions.rb
A db/migrate/20210618155318_make_sortitions_authors_polymorphic.decidim_sortitions.rb
A db/migrate/20210618155319_index_foreign_keys_in_decidim_sortitions_sortitions.decidim_sortitions.rb
A db/migrate/20210618155320_add_commentable_counter_cache_to_sortitions.decidim_sortitions.rb
A db/migrate/20210618155321_create_decidim_blogs_posts.decidim_blogs.rb
A db/migrate/20210618155322_add_author_to_decidim_blogs_posts.decidim_blogs.rb
A db/migrate/20210618155323_make_blogposts_authors_polymorphics.decidim_blogs.rb
A db/migrate/20210618155324_add_user_group_author_to_blogs.decidim_blogs.rb
A db/migrate/20210618155325_add_endorsements_counter_cache_to_blogs.decidim_blogs.rb
A db/migrate/20210618155326_index_foreign_keys_in_decidim_blogs_posts.decidim_blogs.rb
A db/migrate/20210618155327_add_commentable_counter_cache_to_posts.decidim_blogs.rb
A db/migrate/20210618155328_add_followable_counter_cache_to_blogs.decidim_blogs.rb
D db/migrate/20210715093136_add_salt_to_decidim_forms_questionnaires.decidim_forms.rb
D db/migrate/20210715093137_add_max_characters_to_decidim_forms_questions.decidim_forms.rb
D db/migrate/20210715093139_create_decidim_verifications_csv_data.decidim_verifications.rb
D db/migrate/20210715093140_create_decidim_verifications_conflicts.decidim_verifications.rb
D db/migrate/20210715093141_add_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093142_translate_processes.decidim_participatory_processes.rb
D db/migrate/20210715093143_add_hero_image_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093144_add_banner_image_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093145_add_promoted_flag_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093146_add_participatory_process_steps.decidim_participatory_processes.rb
D db/migrate/20210715093147_add_active_flag_to_step.decidim_participatory_processes.rb
D db/migrate/20210715093148_add_position_to_steps.decidim_participatory_processes.rb
D db/migrate/20210715093149_add_published_at_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093150_remove_not_null_on_step_position.decidim_participatory_processes.rb
D db/migrate/20210715093151_add_index_for_process_slug_organization.decidim_participatory_processes.rb
D db/migrate/20210715093152_create_attachments.decidim_participatory_processes.rb
D db/migrate/20210715093153_loosen_step_requirements.decidim_participatory_processes.rb
D db/migrate/20210715093154_make_attachments_polymorphic.decidim_participatory_processes.rb
D db/migrate/20210715093155_rename_attachable_to_attached_to.decidim_participatory_processes.rb
D db/migrate/20210715093156_add_extra_info_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093157_rename_extra_info_on_processes.decidim_participatory_processes.rb
D db/migrate/20210715093158_remove_steps_short_description.decidim_participatory_processes.rb
D db/migrate/20210715093159_add_scopes_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093160_add_participatory_process_groups.decidim_participatory_processes.rb
D db/migrate/20210715093161_change_steps_end_and_start_date_to_date.decidim_participatory_processes.rb
D db/migrate/20210715093162_make_features_polymorphic.decidim_participatory_processes.rb
D db/migrate/20210715093163_add_show_statistics_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093164_attachment_description_nullable.decidim_participatory_processes.rb
D db/migrate/20210715093165_add_announcement_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093166_add_scopes_enabled_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093167_add_start_date_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093168_add_weight_to_attachments.decidim_participatory_processes.rb
D db/migrate/20210715093169_add_attachment_collection_to_attachments.decidim_participatory_processes.rb
D db/migrate/20210715093170_add_private_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093171_add_reference_to_processes.decidim_participatory_processes.rb
D db/migrate/20210715093172_add_cta_url_and_text_to_steps.decidim_participatory_processes.rb
D db/migrate/20210715093173_add_area_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093174_add_scope_type_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093175_add_show_metrics_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093176_index_foreign_keys_in_decidim_attachments.decidim_participatory_processes.rb
D db/migrate/20210715093177_index_foreign_keys_in_decidim_participatory_process_user_roles.decidim_participatory_processes.rb
D db/migrate/20210715093178_index_foreign_keys_in_decidim_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093179_fix_attachments_titles.decidim_participatory_processes.rb
D db/migrate/20210715093180_add_hashtag_to_participatory_process_groups.decidim_participatory_processes.rb
D db/migrate/20210715093181_add_metadata_columns_to_participatory_process_groups.decidim_participatory_processes.rb
D db/migrate/20210715093182_rename_name_column_to_title_in_decidim_participatory_process_groups.decidim_participatory_processes.rb
D db/migrate/20210715093183_add_promoted_flag_to_decidim_participatory_process_groups.decidim_participatory_processes.rb
D db/migrate/20210715093184_add_weight_field_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093185_add_followable_counter_cache_to_participatory_processes.decidim_participatory_processes.rb
D db/migrate/20210715093186_add_assemblies.decidim_assemblies.rb
D db/migrate/20210715093187_add_scopes_enabled_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093188_add_assembly_user_roles.decidim_assemblies.rb
D db/migrate/20210715093189_add_private_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093190_add_reference_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093191_add_area_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093192_add_parent_child_relation_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093193_add_fields_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093194_add_assembly_members.decidim_assemblies.rb
D db/migrate/20210715093195_assembly_member_belongs_to_user.decidim_assemblies.rb
D db/migrate/20210715093196_update_assembly_members_index.decidim_assemblies.rb
D db/migrate/20210715093197_reset_negative_children_count_counters.decidim_assemblies.rb
D db/migrate/20210715093198_create_decidim_assembly_types.decidim_assemblies.rb
D db/migrate/20210715093200_index_foreign_keys_in_decidim_assemblies.decidim_assemblies.rb
D db/migrate/20210715093201_index_foreign_keys_in_decidim_assembly_user_roles.decidim_assemblies.rb
D db/migrate/20210715093202_remove_legacy_decidim_assembly_type.decidim_assemblies.rb
D db/migrate/20210715093203_create_decidim_assemblies_settings.decidim_assemblies.rb
D db/migrate/20210715093204_add_weight_field_to_assembly.decidim_assemblies.rb
D db/migrate/20210715093205_add_followable_counter_cache_to_assemblies.decidim_assemblies.rb
D db/migrate/20210715093206_create_decidim_pages.decidim_pages.rb
D db/migrate/20210715093207_add_commentable_to_pages.decidim_pages.rb
D db/migrate/20210715093208_remove_commentable_flag_from_pages.decidim_pages.rb
D db/migrate/20210715093209_remove_page_feature_titles.decidim_pages.rb
D db/migrate/20210715093210_rename_features_to_components_at_pages.decidim_pages.rb
D db/migrate/20210715093211_create_comments.decidim_comments.rb
D db/migrate/20210715093212_add_depth_to_comments.decidim_comments.rb
D db/migrate/20210715093213_add_alignment_to_comments.decidim_comments.rb
D db/migrate/20210715093214_create_comment_votes.decidim_comments.rb
D db/migrate/20210715093215_add_user_group_id_to_comments.decidim_comments.rb
D db/migrate/20210715093216_add_root_commentable_to_comments.decidim_comments.rb
D db/migrate/20210715093217_update_root_commentable_for_comments.decidim_comments.rb
D db/migrate/20210715093218_set_root_commentable_null_constraints.decidim_comments.rb
D db/migrate/20210715093219_fix_user_groups_ids_in_comments.decidim_comments.rb
D db/migrate/20210715093220_make_authors_polymorphic_for_comments.decidim_comments.rb
D db/migrate/20210715093221_make_author_polymorphic_for_comment_votes.decidim_comments.rb
D db/migrate/20210715093222_index_foreign_keys_in_decidim_comments_comments.decidim_comments.rb
D db/migrate/20210715093223_make_comments_handle_i18n.decidim_comments.rb
D db/migrate/20210715093224_add_commentable_counter_cache_to_comments.decidim_comments.rb
D db/migrate/20210715093225_create_meetings.decidim_meetings.rb
D db/migrate/20210715093226_close_a_meeting.decidim_meetings.rb
D db/migrate/20210715093227_add_latitude_and_longitude_to_meetings.decidim_meetings.rb
D db/migrate/20210715093228_remove_short_description_from_meetings.decidim_meetings.rb
D db/migrate/20210715093229_add_reference_to_meetings.decidim_meetings.rb
D db/migrate/20210715093230_remove_not_null_reference_meetings.decidim_meetings.rb
D db/migrate/20210715093231_migrate_meetings_category.decidim_meetings.rb
D db/migrate/20210715093232_add_registration_attributes_to_meetings.decidim_meetings.rb
D db/migrate/20210715093233_create_registrations.decidim_meetings.rb
D db/migrate/20210715093234_rename_features_to_components_at_meetings.decidim_meetings.rb
D db/migrate/20210715093235_add_fields_for_registrations.decidim_meetings.rb
D db/migrate/20210715093236_add_meeting_types.decidim_meetings.rb
D db/migrate/20210715093237_add_organizer_to_meetings.decidim_meetings.rb
D db/migrate/20210715093238_create_meetings_minutes.decidim_meetings.rb
D db/migrate/20210715093239_add_services_to_meetings.decidim_meetings.rb
D db/migrate/20210715093240_create_decidim_agendas.decidim_meetings.rb
D db/migrate/20210715093241_create_decidim_agenda_items.decidim_meetings.rb
D db/migrate/20210715093242_create_decidim_meetings_invites.decidim_meetings.rb
D db/migrate/20210715093243_add_code_to_decidim_meetings_registrations.decidim_meetings.rb
D db/migrate/20210715093244_add_validated_at_to_decidim_meetings_registrations.decidim_meetings.rb
D db/migrate/20210715093245_add_registration_form_enabled_to_decidim_meetings.decidim_meetings.rb
D db/migrate/20210715093246_add_upcoming_events_as_content_block.decidim_meetings.rb
D db/migrate/20210715093247_add_questionnaire_to_existing_meetings.decidim_meetings.rb
D db/migrate/20210715093248_add_user_group_to_meetings_registrations.decidim_meetings.rb
D db/migrate/20210715093249_index_foreign_keys_in_decidim_meetings_registrations.decidim_meetings.rb
D db/migrate/20210715093250_add_author_to_meetings.decidim_meetings.rb
D db/migrate/20210715093251_create_meeting_services_table.decidim_meetings.rb
D db/migrate/20210715093252_move_meeting_services_to_own_model.decidim_meetings.rb
D db/migrate/20210715093253_add_commentable_counter_cache_to_meetings.decidim_meetings.rb
D db/migrate/20210715093254_add_online_meeting_url.decidim_meetings.rb
D db/migrate/20210715093255_add_type_of_meeting.decidim_meetings.rb
D db/migrate/20210715093256_fix_meetings_registration_terms.decidim_meetings.rb
D db/migrate/20210715093257_add_registration_type_and_url_to_meetings.decidim_meetings.rb
D db/migrate/20210715093258_add_salt_to_decidim_meetings.decidim_meetings.rb
D db/migrate/20210715093259_add_followable_counter_cache_to_meetings.decidim_meetings.rb
D db/migrate/20210715093260_create_decidim_proposals.decidim_proposals.rb
D db/migrate/20210715093261_create_proposal_votes.decidim_proposals.rb
D db/migrate/20210715093262_add_text_search_indexes.decidim_proposals.rb
D db/migrate/20210715093263_add_counter_cache_votes_to_proposals.decidim_proposals.rb
D db/migrate/20210715093264_add_user_group_id_to_proposals.decidim_proposals.rb
D db/migrate/20210715093265_add_answers_to_proposals.decidim_proposals.rb
D db/migrate/20210715093266_add_index_to_decidim_proposals_proposals_proposal_votes_count.decidim_proposals.rb
D db/migrate/20210715093267_create_proposal_reports.decidim_proposals.rb
D db/migrate/20210715093268_add_report_count_to_proposals.decidim_proposals.rb
D db/migrate/20210715093269_add_reference_to_proposals.decidim_proposals.rb
D db/migrate/20210715093270_add_hidden_at_to_proposals.decidim_proposals.rb
D db/migrate/20210715093271_add_geolocalization_fields_to_proposals.decidim_proposals.rb
D db/migrate/20210715093272_migrate_proposal_reports_data_to_reports.decidim_proposals.rb
D db/migrate/20210715093273_remove_not_null_reference_proposals.decidim_proposals.rb
D db/migrate/20210715093274_migrate_proposals_category.decidim_proposals.rb
D db/migrate/20210715093275_create_proposal_endorsements.decidim_proposals.rb
D db/migrate/20210715093276_add_counter_cache_endorsements_to_proposals.decidim_proposals.rb
D db/migrate/20210715093277_enable_pg_trgm_extension_for_proposals.decidim_proposals.rb
D db/migrate/20210715093278_add_published_at_to_proposals.decidim_proposals.rb
D db/migrate/20210715093279_create_decidim_proposal_notes.decidim_proposals.rb
D db/migrate/20210715093280_add_index_created_at_proposal_notes.decidim_proposals.rb
D db/migrate/20210715093281_rename_features_to_components_at_proposals.decidim_proposals.rb
D db/migrate/20210715093282_create_decidim_proposals_collaborative_drafts.decidim_proposals.rb
D db/migrate/20210715093283_fix_nil_threshold_per_proposal.decidim_proposals.rb
D db/migrate/20210715093284_add_counter_cache_coauthorships_to_proposals.decidim_proposals.rb
D db/migrate/20210715093285_move_authorships_to_coauthorships.decidim_proposals.rb
D db/migrate/20210715093286_remove_authorships_from_proposals.decidim_proposals.rb
D db/migrate/20210715093287_create_collaborative_draft_collaborator_requests.decidim_proposals.rb
D db/migrate/20210715093288_add_counter_cache_coauthorships_to_collaborative_drafts.decidim_proposals.rb
D db/migrate/20210715093289_remove_index_counter_cache_coauthorships_to_proposals.decidim_proposals.rb
D db/migrate/20210715093290_create_participatory_texts.decidim_proposals.rb
D db/migrate/20210715093291_add_position_to_proposals.decidim_proposals.rb
D db/migrate/20210715093292_add_participatory_text_level_to_proposals.decidim_proposals.rb
D db/migrate/20210715093293_fix_user_groups_ids_in_proposals_endorsements.decidim_proposals.rb
D db/migrate/20210715093294_add_temporary_votes.decidim_proposals.rb
D db/migrate/20210715093295_add_organization_as_author.decidim_proposals.rb
D db/migrate/20210715093296_make_author_polymorhpic_for_proposal_endorsements.decidim_proposals.rb
D db/migrate/20210715093297_add_created_in_meeting.decidim_proposals.rb
D db/migrate/20210715093298_use_md5_indexes.decidim_proposals.rb
D db/migrate/20210715093299_add_endorsements_counter_cache_to_proposals.decidim_proposals.rb
D db/migrate/20210715093300_move_proposal_endorsements_to_core_endorsements.decidim_proposals.rb
D db/migrate/20210715093301_drop_proposal_endorsements.decidim_proposals.rb
D db/migrate/20210715093302_add_proposal_valuation_assignments.decidim_proposals.rb
D db/migrate/20210715093303_add_costs_to_proposals.decidim_proposals.rb
D db/migrate/20210715093304_sync_proposals_state_with_amendments_state.decidim_proposals.rb
D db/migrate/20210715093305_add_state_published_at_to_proposals.decidim_proposals.rb
D db/migrate/20210715093306_publish_existing_proposals_state.decidim_proposals.rb
D db/migrate/20210715093307_move_proposals_fields_to_i18n.decidim_proposals.rb
D db/migrate/20210715093308_move_proposal_endorsed_event_notifications_to_resource_endorsed_event.decidim_proposals.rb
D db/migrate/20210715093309_add_commentable_counter_cache_to_proposals.decidim_proposals.rb
D db/migrate/20210715093310_fix_proposals_data.decidim_proposals.rb
D db/migrate/20210715093311_fix_answered_proposals_after_copy.decidim_proposals.rb
D db/migrate/20210715093312_add_followable_counter_cache_to_proposals.decidim_proposals.rb
D db/migrate/20210715093313_add_followable_counter_cache_to_collaborative_drafts.decidim_proposals.rb
D db/migrate/20210715093314_fix_counters_for_copied_proposals.decidim_proposals.rb
D db/migrate/20210715093315_create_projects.decidim_budgets.rb
D db/migrate/20210715093316_create_orders.decidim_budgets.rb
D db/migrate/20210715093317_create_line_items.decidim_budgets.rb
D db/migrate/20210715093318_remove_short_description_from_decidim_projects.decidim_budgets.rb
D db/migrate/20210715093319_add_reference_to_projects.decidim_budgets.rb
D db/migrate/20210715093320_remove_not_null_reference_budgets.decidim_budgets.rb
D db/migrate/20210715093321_migrate_projects_category.decidim_budgets.rb
D db/migrate/20210715093322_rename_features_to_components_at_budgets.decidim_budgets.rb
D db/migrate/20210715093323_use_big_ints_for_budgets.decidim_budgets.rb
D db/migrate/20210715093324_create_decidim_budgets.decidim_budgets.rb
D db/migrate/20210715093325_rename_budget_to_budget_ammount.decidim_budgets.rb
D db/migrate/20210715093326_add_budget_reference_to_project.decidim_budgets.rb
D db/migrate/20210715093327_add_budget_reference_to_order.decidim_budgets.rb
D db/migrate/20210715093329_add_scope_to_budgets.decidim_budgets.rb
D db/migrate/20210715093330_add_selected_at_to_project.decidim_budgets.rb
D db/migrate/20210715093331_votes_enabled_to_votes_choices.decidim_budgets.rb
D db/migrate/20210715093332_add_commentable_counter_cache_to_projects.decidim_budgets.rb
D db/migrate/20210715093333_add_followable_counter_cache_to_budgets.decidim_budgets.rb
D db/migrate/20210715093334_create_decidim_surveys.decidim_surveys.rb
D db/migrate/20210715093335_create_decidim_survey_questions.decidim_surveys.rb
D db/migrate/20210715093336_create_decidim_survey_answers.decidim_surveys.rb
D db/migrate/20210715093337_add_position_to_surveys_questions.decidim_surveys.rb
D db/migrate/20210715093338_add_mandatory_to_surveys_questions.decidim_surveys.rb
D db/migrate/20210715093339_add_question_type_to_surveys_questions.decidim_surveys.rb
D db/migrate/20210715093340_add_answer_options_to_surveys_questions.decidim_surveys.rb
D db/migrate/20210715093341_rename_features_to_components_at_surveys.decidim_surveys.rb
D db/migrate/20210715093342_add_max_choices_to_survey_questions.decidim_surveys.rb
D db/migrate/20210715093343_add_description_to_decidim_survey_questions.decidim_surveys.rb
D db/migrate/20210715093344_add_choices_to_decidim_survey_answers.decidim_surveys.rb
D db/migrate/20210715093345_create_decidim_survey_answer_options.decidim_surveys.rb
D db/migrate/20210715093346_create_decidim_survey_answer_choices.decidim_surveys.rb
D db/migrate/20210715093347_add_free_text_to_survey_answer_options.decidim_surveys.rb
D db/migrate/20210715093348_add_custom_body_to_survey_answer_choices.decidim_surveys.rb
D db/migrate/20210715093349_add_position_to_decidim_survey_answer_choices.decidim_surveys.rb
D db/migrate/20210715093351_remove_survey_answer_choices.decidim_surveys.rb
D db/migrate/20210715093352_remove_survey_answer_options.decidim_surveys.rb
D db/migrate/20210715093353_remove_survey_answers.decidim_surveys.rb
D db/migrate/20210715093354_remove_survey_questions.decidim_surveys.rb
D db/migrate/20210715093355_remove_survey_columns.decidim_surveys.rb
D db/migrate/20210715093356_create_accountability_statuses.decidim_accountability.rb
D db/migrate/20210715093357_create_accountability_results.decidim_accountability.rb
D db/migrate/20210715093358_add_description_and_progress_to_statuses.decidim_accountability.rb
D db/migrate/20210715093359_create_accountability_timeline_entries.decidim_accountability.rb
D db/migrate/20210715093360_migrate_accountability_results_category.decidim_accountability.rb
D db/migrate/20210715093361_add_children_counter_cache_to_results.decidim_accountability.rb
D db/migrate/20210715093362_migrate_old_results.decidim_accountability.rb
D db/migrate/20210715093363_rename_features_to_components_at_accountability.decidim_accountability.rb
D db/migrate/20210715093364_add_weight_to_results.decidim_accountability.rb
D db/migrate/20210715093365_add_external_id_to_results.decidim_accountability.rb
D db/migrate/20210715093366_index_foreign_keys_in_decidim_accountability_results.decidim_accountability.rb
D db/migrate/20210715093367_add_commentable_counter_cache_to_results.decidim_accountability.rb
D db/migrate/20210715093368_create_debates.decidim_debates.rb
D db/migrate/20210715093369_add_debate_information_updates.decidim_debates.rb
D db/migrate/20210715093370_add_author_to_debates.decidim_debates.rb
D db/migrate/20210715093371_add_reference_to_debates.decidim_debates.rb
D db/migrate/20210715093372_add_user_group_author_to_debates.decidim_debates.rb
D db/migrate/20210715093373_drop_category_id_column.decidim_debates.rb
D db/migrate/20210715093374_rename_features_to_components_at_debates.decidim_debates.rb
D db/migrate/20210715093375_fix_user_groups_ids_on_debates.decidim_debates.rb
D db/migrate/20210715093376_add_organization_as_author_to_debates.decidim_debates.rb
D db/migrate/20210715093377_index_foreign_keys_in_decidim_debates_debates.decidim_debates.rb
D db/migrate/20210715093378_close_debates.decidim_debates.rb
D db/migrate/20210715093379_fix_debates_i18n_fields.decidim_debates.rb
D db/migrate/20210715093380_add_endorsable_to_debates.decidim_debates.rb
D db/migrate/20210715093381_add_commentable_counter_cache_to_debates.decidim_debates.rb
D db/migrate/20210715093382_add_cached_comment_metadata_to_debates.decidim_debates.rb
D db/migrate/20210715093383_add_scope_to_debates_debate.decidim_debates.rb
D db/migrate/20210715093384_archive_debates.decidim_debates.rb
D db/migrate/20210715093385_revert_archive_debates.decidim_debates.rb
D db/migrate/20210715093386_add_followable_counter_cache_to_debates.decidim_debates.rb
D db/migrate/20210715093387_create_decidim_module_sortitions_sortitions.decidim_sortitions.rb
D db/migrate/20210715093388_add_witnesses_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093389_add_additional_info_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093390_add_author_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093391_add_reference_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093392_add_title_to_sortition.decidim_sortitions.rb
D db/migrate/20210715093393_drop_decidim_category_id_from_sortitions.decidim_sortitions.rb
D db/migrate/20210715093394_add_cancel_data_to_sortition.decidim_sortitions.rb
D db/migrate/20210715093395_make_sortition_reference_nullable.decidim_sortitions.rb
D db/migrate/20210715093396_add_candidate_proposals_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093397_rename_sortitions_table.decidim_sortitions.rb
D db/migrate/20210715093398_fix_sortitions_feature.decidim_sortitions.rb
D db/migrate/20210715093399_fix_sortitions_proposal_feature.decidim_sortitions.rb
D db/migrate/20210715093400_make_sortitions_authors_polymorphic.decidim_sortitions.rb
D db/migrate/20210715093401_index_foreign_keys_in_decidim_sortitions_sortitions.decidim_sortitions.rb
D db/migrate/20210715093402_add_commentable_counter_cache_to_sortitions.decidim_sortitions.rb
D db/migrate/20210715093403_create_decidim_blogs_posts.decidim_blogs.rb
D db/migrate/20210715093404_add_author_to_decidim_blogs_posts.decidim_blogs.rb
D db/migrate/20210715093405_make_blogposts_authors_polymorphics.decidim_blogs.rb
D db/migrate/20210715093406_add_user_group_author_to_blogs.decidim_blogs.rb
D db/migrate/20210715093407_add_endorsements_counter_cache_to_blogs.decidim_blogs.rb
D db/migrate/20210715093408_index_foreign_keys_in_decidim_blogs_posts.decidim_blogs.rb
D db/migrate/20210715093409_add_commentable_counter_cache_to_posts.decidim_blogs.rb
D db/migrate/20210715093410_add_followable_counter_cache_to_blogs.decidim_blogs.rb
A db/migrate/20211108202911_create_decidim_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202912_create_decidim_initiatives.decidim_initiatives.rb
A db/migrate/20211108202913_create_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202914_create_decidim_initiatives_committee_members.decidim_initiatives.rb
A db/migrate/20211108202915_add_decidim_user_group_id_to_decidim_initiatives.decidim_initiatives.rb
A db/migrate/20211108202916_change_signature_interval_to_optional.decidim_initiatives.rb
A db/migrate/20211108202917_add_decidim_user_group_id_to_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202918_remove_scope_from_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202919_add_banner_image_to_initiative_type.decidim_initiatives.rb
A db/migrate/20211108202920_add_hashtag_to_initiatives.decidim_initiatives.rb
A db/migrate/20211108202921_add_initiative_supports_count_to_initiative.decidim_initiatives.rb
A db/migrate/20211108202922_create_decidim_initiatives_decidim_initiatives_type_scopes.decidim_initiatives.rb
A db/migrate/20211108202923_remove_supports_required_from_decidim_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202924_add_scopes_for_all_initiative_types.decidim_initiatives.rb
A db/migrate/20211108202925_add_scoped_type_to_initiative.decidim_initiatives.rb
A db/migrate/20211108202926_update_initiative_scoped_type.decidim_initiatives.rb
A db/migrate/20211108202927_remove_unused_attributes_from_initiative.decidim_initiatives.rb
A db/migrate/20211108202928_add_initiative_notification_dates.decidim_initiatives.rb
A db/migrate/20211108202929_create_initiative_extra_data.decidim_initiatives.rb
A db/migrate/20211108202930_create_static_pages.decidim_initiatives.rb
A db/migrate/20211108202931_optional_validation_support.decidim_initiatives.rb
A db/migrate/20211108202932_add_offline_votes_to_initiative.decidim_initiatives.rb
A db/migrate/20211108202933_drop_initiative_description_index.decidim_initiatives.rb
A db/migrate/20211108202934_create_initiative_description_index.decidim_initiatives.rb
A db/migrate/20211108202935_enable_pg_trgm_extension_for_initiatives.decidim_initiatives.rb
A db/migrate/20211108202936_drop_decidim_initiatives_extra_data.decidim_initiatives.rb
A db/migrate/20211108202937_remove_requires_validation_from_decidim_initiatives_type.decidim_initiatives.rb
A db/migrate/20211108202938_add_unique_on_votes.decidim_initiatives.rb
A db/migrate/20211108202939_rename_signature_time_fields_to_signature_date.decidim_initiatives.rb
A db/migrate/20211108202940_fix_user_groups_ids_on_initiatives.decidim_initiatives.rb
A db/migrate/20211108202941_make_initiative_authors_polymorphic.decidim_initiatives.rb
A db/migrate/20211108202942_add_reference_to_initiatives.decidim_initiatives.rb
A db/migrate/20211108202943_add_collect_extra_user_fields_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202944_add_online_signature_enabled_to_initiative_type.decidim_initiatives.rb
A db/migrate/20211108202945_add_extra_fields_legal_information_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202946_add_min_committee_members_to_initiative_type.decidim_initiatives.rb
A db/migrate/20211108202947_add_encrypted_metadata_to_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202948_add_timestamp_to_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202949_add_hash_id_to_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202950_add_validate_sms_code_on_votes_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202951_add_document_number_authorization_handler_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202952_add_undo_online_signatures_enabled_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202953_add_promoting_committee_option.decidim_initiatives.rb
A db/migrate/20211108202954_move_signature_type_to_initative_type.decidim_initiatives.rb
A db/migrate/20211108202955_add_settings_to_initiatives_types.decidim_initiatives.rb
A db/migrate/20211108202956_add_scopes_to_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202957_allow_multiple_initiative_votes_counter_caches.decidim_initiatives.rb
A db/migrate/20211108202958_allow_multiple_offline_votes.decidim_initiatives.rb
A db/migrate/20211108202959_index_foreign_keys_in_decidim_initiatives.decidim_initiatives.rb
A db/migrate/20211108202960_index_foreign_keys_in_decidim_initiatives_votes.decidim_initiatives.rb
A db/migrate/20211108202961_add_custom_signature_end_time_option.decidim_initiatives.rb
A db/migrate/20211108202962_add_attachments_enabled_option.decidim_initiatives.rb
A db/migrate/20211108202963_add_area_to_initiatives.decidim_initiatives.rb
A db/migrate/20211108202964_add_area_enabled_option_to_initiatives.decidim_initiatives.rb
A db/migrate/20211108202965_remove_user_groups_from_initiative_votes.decidim_initiatives.rb
A db/migrate/20211108202966_add_commentable_counter_cache_to_initiatives.decidim_initiatives.rb
A db/migrate/20211108202967_add_followable_counter_cache_to_initiatives.decidim_initiatives.rb
M db/schema.rb
M Gemfile => Gemfile +1 -1
@@ 8,7 8,7 @@ gem "decidim", "0.24.3"
# gem "decidim-conferences", "0.24.3"
# gem "decidim-consultations", "0.24.3"
# gem "decidim-elections", "0.24.3"
# gem "decidim-initiatives", "0.24.3"
gem "decidim-initiatives", "0.24.3"
# gem "decidim-templates", "0.24.3"

gem "bootsnap", "~> 1.3"

M Gemfile.lock => Gemfile.lock +22 -0
@@ 118,6 118,7 @@ GEM
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    colorize (0.8.1)
    concurrent-ruby (1.1.8)
    cookiejar (0.3.3)
    crack (0.4.5)


@@ 287,6 288,17 @@ GEM
      wkhtmltopdf-binary (~> 0.12)
    decidim-generators (0.24.3)
      decidim-core (= 0.24.3)
    decidim-initiatives (0.24.3)
      decidim-admin (= 0.24.3)
      decidim-comments (= 0.24.3)
      decidim-core (= 0.24.3)
      decidim-verifications (= 0.24.3)
      kaminari (~> 1.2, >= 1.2.1)
      origami (~> 2.1)
      virtus-multiparams (~> 0.1)
      wicked (~> 1.3)
      wicked_pdf (~> 1.4)
      wkhtmltopdf-binary (~> 0.12)
    decidim-meetings (0.24.3)
      cells-erb (~> 0.1.0)
      cells-rails (~> 0.0.9)


@@ 541,6 553,8 @@ GEM
    nokogiri (1.11.5)
      mini_portile2 (~> 2.5.0)
      racc (~> 1.4)
    nokogiri (1.11.5-x86_64-linux)
      racc (~> 1.4)
    oauth (0.5.6)
    oauth2 (1.4.7)
      faraday (>= 0.8, < 2.0)


@@ 570,6 584,8 @@ GEM
    omniauth-twitter (1.4.0)
      omniauth-oauth (~> 1.1)
      rack
    origami (2.1.0)
      colorize (~> 0.7)
    orm_adapter (0.5.0)
    paper_trail (10.3.1)
      activerecord (>= 4.2)


@@ 798,6 814,8 @@ GEM
      coercible (~> 1.0)
      descendants_tracker (~> 0.0, >= 0.0.3)
      equalizer (~> 0.0, >= 0.0.9)
    virtus-multiparams (0.1.1)
      virtus (~> 1.0)
    warden (1.2.9)
      rack (>= 2.0.9)
    web-console (3.7.0)


@@ 812,6 830,8 @@ GEM
    websocket-driver (0.7.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    wicked (1.3.4)
      railties (>= 3.0.7)
    wicked_pdf (1.4.0)
      activesupport
    wisper (2.0.1)


@@ 822,12 842,14 @@ GEM

PLATFORMS
  ruby
  x86_64-linux-musl

DEPENDENCIES
  bootsnap (~> 1.3)
  byebug (~> 11.0)
  decidim (= 0.24.3)
  decidim-dev (= 0.24.3)
  decidim-initiatives (= 0.24.3)
  faker (~> 2.14)
  letter_opener_web (~> 1.3)
  listen (~> 3.1)

R db/migrate/20210715092933_devise_create_decidim_users.decidim.rb => db/migrate/20210618154851_devise_create_decidim_users.decidim.rb +0 -0
R db/migrate/20210715092934_create_decidim_organizations.decidim.rb => db/migrate/20210618154852_create_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715092935_devise_invitable_add_to_decidim_users.decidim.rb => db/migrate/20210618154853_devise_invitable_add_to_decidim_users.decidim.rb +0 -0
R db/migrate/20210715092936_user_belongs_to_organization.decidim.rb => db/migrate/20210618154854_user_belongs_to_organization.decidim.rb +0 -0
R db/migrate/20210715092937_user_has_roles.decidim.rb => db/migrate/20210618154855_user_has_roles.decidim.rb +0 -0
R db/migrate/20210715092938_add_description_to_organizations.decidim.rb => db/migrate/20210618154856_add_description_to_organizations.decidim.rb +0 -0
R db/migrate/20210715092939_add_confirmable_to_devise.decidim.rb => db/migrate/20210618154857_add_confirmable_to_devise.decidim.rb +0 -0
R db/migrate/20210715092940_add_name_to_users.decidim.rb => db/migrate/20210618154858_add_name_to_users.decidim.rb +0 -0
R db/migrate/20210715092941_add_locale_to_users.decidim.rb => db/migrate/20210618154859_add_locale_to_users.decidim.rb +0 -0
R db/migrate/20210715092942_create_decidim_authorizations.decidim.rb => db/migrate/20210618154860_create_decidim_authorizations.decidim.rb +0 -0
R db/migrate/20210715092943_create_decidim_static_pages.decidim.rb => db/migrate/20210618154861_create_decidim_static_pages.decidim.rb +0 -0
R db/migrate/20210715092944_create_decidim_features.decidim.rb => db/migrate/20210618154862_create_decidim_features.decidim.rb +0 -0
R db/migrate/20210715092945_add_categories.decidim.rb => db/migrate/20210618154863_add_categories.decidim.rb +0 -0
R db/migrate/20210715092946_create_decidim_scopes.decidim.rb => db/migrate/20210618154864_create_decidim_scopes.decidim.rb +0 -0
R db/migrate/20210715092947_make_organization_description_optional.decidim.rb => db/migrate/20210618154865_make_organization_description_optional.decidim.rb +0 -0
R db/migrate/20210715092948_add_avatar_to_users.decidim.rb => db/migrate/20210618154866_add_avatar_to_users.decidim.rb +0 -0
R db/migrate/20210715092949_add_logo_to_organizations.decidim.rb => db/migrate/20210618154867_add_logo_to_organizations.decidim.rb +0 -0
R db/migrate/20210715092950_add_configuration_to_features.decidim.rb => db/migrate/20210618154868_add_configuration_to_features.decidim.rb +0 -0
R db/migrate/20210715092951_add_handler_to_organization.decidim.rb => db/migrate/20210618154869_add_handler_to_organization.decidim.rb +0 -0
R db/migrate/20210715092952_create_resource_links.decidim.rb => db/migrate/20210618154870_create_resource_links.decidim.rb +0 -0
R db/migrate/20210715092953_create_identities.decidim.rb => db/migrate/20210618154871_create_identities.decidim.rb +0 -0
R db/migrate/20210715092954_add_uniqueness_field_to_authorizations.decidim.rb => db/migrate/20210618154872_add_uniqueness_field_to_authorizations.decidim.rb +0 -0
R db/migrate/20210715092955_create_user_groups.decidim.rb => db/migrate/20210618154873_create_user_groups.decidim.rb +0 -0
R db/migrate/20210715092956_create_user_group_memberships.decidim.rb => db/migrate/20210618154874_create_user_group_memberships.decidim.rb +0 -0
R db/migrate/20210715092957_add_show_statistics_to_organization.decidim.rb => db/migrate/20210618154875_add_show_statistics_to_organization.decidim.rb +0 -0
R db/migrate/20210715092958_add_user_groups_verified.decidim.rb => db/migrate/20210618154876_add_user_groups_verified.decidim.rb +0 -0
R db/migrate/20210715092959_add_avatar_to_user_groups.decidim.rb => db/migrate/20210618154877_add_avatar_to_user_groups.decidim.rb +0 -0
R db/migrate/20210715092960_add_weight_to_features.decidim.rb => db/migrate/20210618154878_add_weight_to_features.decidim.rb +0 -0
R db/migrate/20210715092961_change_user_groups_verified_to_timestamp.decidim.rb => db/migrate/20210618154879_change_user_groups_verified_to_timestamp.decidim.rb +0 -0
R db/migrate/20210715092962_add_timestamps_to_identities.decidim.rb => db/migrate/20210618154880_add_timestamps_to_identities.decidim.rb +0 -0
R db/migrate/20210715092963_add_favicon_to_decidim_organizations.decidim.rb => db/migrate/20210618154881_add_favicon_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715092964_add_action_permissions_to_decidim_features.decidim.rb => db/migrate/20210618154882_add_action_permissions_to_decidim_features.decidim.rb +0 -0
R db/migrate/20210715092965_add_comments_and_replies_notifications_to_users.decidim.rb => db/migrate/20210618154883_add_comments_and_replies_notifications_to_users.decidim.rb +0 -0
R db/migrate/20210715092966_add_newsletter_notifications_to_users.decidim.rb => db/migrate/20210618154884_add_newsletter_notifications_to_users.decidim.rb +0 -0
R db/migrate/20210715092967_add_published_at_to_decidim_features.decidim.rb => db/migrate/20210618154885_add_published_at_to_decidim_features.decidim.rb +0 -0
R db/migrate/20210715092968_add_social_media_handlers_to_organization.decidim.rb => db/migrate/20210618154886_add_social_media_handlers_to_organization.decidim.rb +0 -0
R db/migrate/20210715092969_add_organization_logo_and_url.decidim.rb => db/migrate/20210618154887_add_organization_logo_and_url.decidim.rb +0 -0
R db/migrate/20210715092970_create_decidim_newsletters.decidim.rb => db/migrate/20210618154888_create_decidim_newsletters.decidim.rb +0 -0
R db/migrate/20210715092971_add_organization_custom_reference.decidim.rb => db/migrate/20210618154889_add_organization_custom_reference.decidim.rb +0 -0
R db/migrate/20210715092972_add_secondary_hosts_to_organizations.decidim.rb => db/migrate/20210618154890_add_secondary_hosts_to_organizations.decidim.rb +0 -0
R db/migrate/20210715092973_create_reports.decidim.rb => db/migrate/20210618154891_create_reports.decidim.rb +0 -0
R db/migrate/20210715092974_create_moderations.decidim.rb => db/migrate/20210618154892_create_moderations.decidim.rb +0 -0
R db/migrate/20210715092975_add_available_authorizations_to_organization.decidim.rb => db/migrate/20210618154893_add_available_authorizations_to_organization.decidim.rb +0 -0
R db/migrate/20210715092976_change_decidim_user_email_index_uniqueness.decidim.rb => db/migrate/20210618154894_change_decidim_user_email_index_uniqueness.decidim.rb +0 -0
R db/migrate/20210715092977_add_organization_to_identities.decidim.rb => db/migrate/20210618154895_add_organization_to_identities.decidim.rb +0 -0
R db/migrate/20210715092978_change_decidim_identities_provider_uid_index_uniqueness.decidim.rb => db/migrate/20210618154896_change_decidim_identities_provider_uid_index_uniqueness.decidim.rb +0 -0
R db/migrate/20210715092979_add_rejected_at_to_user_groups.decidim.rb => db/migrate/20210618154897_add_rejected_at_to_user_groups.decidim.rb +0 -0
R db/migrate/20210715092980_add_deleted_fields_to_users.decidim.rb => db/migrate/20210618154898_add_deleted_fields_to_users.decidim.rb +0 -0
R db/migrate/20210715092981_add_hierarchy_to_scopes.decidim.rb => db/migrate/20210618154899_add_hierarchy_to_scopes.decidim.rb +0 -0
R db/migrate/20210715092982_set_email_unique_in_organization_conditional.decidim.rb => db/migrate/20210618154900_set_email_unique_in_organization_conditional.decidim.rb +0 -0
R db/migrate/20210715092983_add_organization_to_user_groups.decidim.rb => db/migrate/20210618154901_add_organization_to_user_groups.decidim.rb +0 -0
R db/migrate/20210715092984_add_uniqueness_to_name_and_document_number_to_user_groups.decidim.rb => db/migrate/20210618154902_add_uniqueness_to_name_and_document_number_to_user_groups.decidim.rb +0 -0
R db/migrate/20210715092985_create_decidim_categorizations.decidim.rb => db/migrate/20210618154903_create_decidim_categorizations.decidim.rb +0 -0
R db/migrate/20210715092986_add_admin_to_users.decidim.rb => db/migrate/20210618154904_add_admin_to_users.decidim.rb +0 -0
R db/migrate/20210715092987_migrate_user_roles_to_participatory_process_roles.decidim.rb => db/migrate/20210618154905_migrate_user_roles_to_participatory_process_roles.decidim.rb +0 -0
R db/migrate/20210715092988_make_moderations_polymorphic.decidim.rb => db/migrate/20210618154906_make_moderations_polymorphic.decidim.rb +0 -0
R db/migrate/20210715092989_add_managed_to_users.decidim.rb => db/migrate/20210618154907_add_managed_to_users.decidim.rb +0 -0
R db/migrate/20210715092990_set_email_unique_in_organization_condition_for_managed_users.decidim.rb => db/migrate/20210618154908_set_email_unique_in_organization_condition_for_managed_users.decidim.rb +0 -0
R db/migrate/20210715092991_create_impersonation_logs.decidim.rb => db/migrate/20210618154909_create_impersonation_logs.decidim.rb +0 -0
R db/migrate/20210715092992_make_categories_polymorphic.decidim.rb => db/migrate/20210618154910_make_categories_polymorphic.decidim.rb +0 -0
R db/migrate/20210715092993_add_roles_to_users.decidim.rb => db/migrate/20210618154911_add_roles_to_users.decidim.rb +0 -0
R db/migrate/20210715092994_create_decidim_follows.decidim.rb => db/migrate/20210618154912_create_decidim_follows.decidim.rb +0 -0
R db/migrate/20210715092995_create_decidim_notifications.decidim.rb => db/migrate/20210618154913_create_decidim_notifications.decidim.rb +0 -0
R db/migrate/20210715092996_add_extra_to_notifications.decidim.rb => db/migrate/20210618154914_add_extra_to_notifications.decidim.rb +0 -0
R db/migrate/20210715092997_add_emails_on_notifications_flag_to_user.decidim.rb => db/migrate/20210618154915_add_emails_on_notifications_flag_to_user.decidim.rb +0 -0
R db/migrate/20210715092998_add_header_snippets_to_organizations.decidim.rb => db/migrate/20210618154916_add_header_snippets_to_organizations.decidim.rb +0 -0
R db/migrate/20210715092999_remove_followable_index_from_follows.decidim.rb => db/migrate/20210618154917_remove_followable_index_from_follows.decidim.rb +0 -0
R db/migrate/20210715093000_remove_comment_and_replies_notifications_from_users.decidim.rb => db/migrate/20210618154918_remove_comment_and_replies_notifications_from_users.decidim.rb +0 -0
R db/migrate/20210715093001_add_status_to_authorizations.decidim.rb => db/migrate/20210618154919_add_status_to_authorizations.decidim.rb +0 -0
R db/migrate/20210715093002_add_verification_metadata_to_authorizations.decidim.rb => db/migrate/20210618154920_add_verification_metadata_to_authorizations.decidim.rb +0 -0
R db/migrate/20210715093003_add_verification_attachment_to_authorizations.decidim.rb => db/migrate/20210618154921_add_verification_attachment_to_authorizations.decidim.rb +0 -0
R db/migrate/20210715093004_add_cta_button_url_and_text_to_organization.decidim.rb => db/migrate/20210618154922_add_cta_button_url_and_text_to_organization.decidim.rb +0 -0
R db/migrate/20210715093005_create_decidim_messaging.decidim.rb => db/migrate/20210618154923_create_decidim_messaging.decidim.rb +0 -0
R db/migrate/20210715093006_create_versions.decidim.rb => db/migrate/20210618154924_create_versions.decidim.rb +0 -0
R db/migrate/20210715093007_add_object_changes_to_versions.decidim.rb => db/migrate/20210618154925_add_object_changes_to_versions.decidim.rb +0 -0
R db/migrate/20210715093008_create_decidim_receipts.decidim.rb => db/migrate/20210618154926_create_decidim_receipts.decidim.rb +0 -0
R db/migrate/20210715093009_create_decidim_attachment_collections.decidim.rb => db/migrate/20210618154927_create_decidim_attachment_collections.decidim.rb +0 -0
R db/migrate/20210715093010_create_unique_nicknames.decidim.rb => db/migrate/20210618154928_create_unique_nicknames.decidim.rb +0 -0
R db/migrate/20210715093011_extend_user_profile.decidim.rb => db/migrate/20210618154929_extend_user_profile.decidim.rb +0 -0
R db/migrate/20210715093012_add_enable_omnipresent_banner_to_decidim_organizations.decidim.rb => db/migrate/20210618154930_add_enable_omnipresent_banner_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093013_add_omnipresent_banner_title_to_decidim_organizations.decidim.rb => db/migrate/20210618154931_add_omnipresent_banner_title_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093014_add_omnipresent_banner_short_description_to_decidim_organizations.decidim.rb => db/migrate/20210618154932_add_omnipresent_banner_short_description_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093015_add_omnipresent_banner_url_to_decidim_organizations.decidim.rb => db/migrate/20210618154933_add_omnipresent_banner_url_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093016_add_highlighted_content_banner_to_decidim_organizations.decidim.rb => db/migrate/20210618154934_add_highlighted_content_banner_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093017_add_action_log.decidim.rb => db/migrate/20210618154935_add_action_log.decidim.rb +0 -0
R db/migrate/20210715093018_fix_reference_for_all_resources.decidim.rb => db/migrate/20210618154936_fix_reference_for_all_resources.decidim.rb +0 -0
R db/migrate/20210715093019_create_participatory_space_private_users.decidim.rb => db/migrate/20210618154937_create_participatory_space_private_users.decidim.rb +0 -0
R db/migrate/20210715093020_create_decidim_searchable_resource.decidim.rb => db/migrate/20210618154938_create_decidim_searchable_resource.decidim.rb +0 -0
R db/migrate/20210715093021_create_decidim_area_types.decidim.rb => db/migrate/20210618154939_create_decidim_area_types.decidim.rb +0 -0
R db/migrate/20210715093022_create_decidim_areas.decidim.rb => db/migrate/20210618154940_create_decidim_areas.decidim.rb +0 -0
R db/migrate/20210715093023_fix_nickname_index.decidim.rb => db/migrate/20210618154941_fix_nickname_index.decidim.rb +0 -0
R db/migrate/20210715093024_add_version_to_action_logs.decidim.rb => db/migrate/20210618154942_add_version_to_action_logs.decidim.rb +0 -0
R db/migrate/20210715093025_create_participatory_space_links.decidim.rb => db/migrate/20210618154943_create_participatory_space_links.decidim.rb +0 -0
R db/migrate/20210715093026_rename_features_to_components.decidim.rb => db/migrate/20210618154944_rename_features_to_components.decidim.rb +0 -0
R db/migrate/20210715093027_doorkeeper_models.decidim.rb => db/migrate/20210618154945_doorkeeper_models.decidim.rb +0 -0
R db/migrate/20210715093028_rename_maximum_votes_per_proposal_to_threshold_per_proposal.decidim.rb => db/migrate/20210618154946_rename_maximum_votes_per_proposal_to_threshold_per_proposal.decidim.rb +0 -0
R db/migrate/20210715093029_change_event_name_and_class_to_rename_to_publish_proposal_event.decidim.rb => db/migrate/20210618154947_change_event_name_and_class_to_rename_to_publish_proposal_event.decidim.rb +0 -0
R db/migrate/20210715093030_create_coauthorships.decidim.rb => db/migrate/20210618154948_create_coauthorships.decidim.rb +0 -0
R db/migrate/20210715093031_add_tos_version_to_organization.decidim.rb => db/migrate/20210618154949_add_tos_version_to_organization.decidim.rb +0 -0
R db/migrate/20210715093032_add_accepted_tos_version_field_to_users.decidim.rb => db/migrate/20210618154950_add_accepted_tos_version_field_to_users.decidim.rb +0 -0
R db/migrate/20210715093033_change_newsletter_notification_type_value.decidim.rb => db/migrate/20210618154951_change_newsletter_notification_type_value.decidim.rb +0 -0
R db/migrate/20210715093034_rename_missing_features_to_components.decidim.rb => db/migrate/20210618154952_rename_missing_features_to_components.decidim.rb +0 -0
R db/migrate/20210715093035_create_decidim_resource_permissions.decidim.rb => db/migrate/20210618154953_create_decidim_resource_permissions.decidim.rb +0 -0
R db/migrate/20210715093036_create_decidim_metrics.decidim.rb => db/migrate/20210618154954_create_decidim_metrics.decidim.rb +0 -0
R db/migrate/20210715093037_add_nickname_to_managed_users.decidim.rb => db/migrate/20210618154955_add_nickname_to_managed_users.decidim.rb +0 -0
R db/migrate/20210715093038_fix_result_follows.decidim.rb => db/migrate/20210618154956_fix_result_follows.decidim.rb +0 -0
R db/migrate/20210715093039_create_decidim_amendments.decidim.rb => db/migrate/20210618154957_create_decidim_amendments.decidim.rb +0 -0
R db/migrate/20210715093040_add_content_blocks.decidim.rb => db/migrate/20210618154958_add_content_blocks.decidim.rb +0 -0
R db/migrate/20210715093041_create_decidim_hashtags.decidim.rb => db/migrate/20210618154959_create_decidim_hashtags.decidim.rb +0 -0
R db/migrate/20210715093042_add_core_content_blocks.decidim.rb => db/migrate/20210618154960_add_core_content_blocks.decidim.rb +0 -0
R db/migrate/20210715093043_rename_content_block_options_to_settings.decidim.rb => db/migrate/20210618154961_rename_content_block_options_to_settings.decidim.rb +0 -0
R db/migrate/20210715093044_add_badge_scores.decidim.rb => db/migrate/20210618154962_add_badge_scores.decidim.rb +0 -0
R db/migrate/20210715093045_add_images_to_content_blocks.decidim.rb => db/migrate/20210618154963_add_images_to_content_blocks.decidim.rb +0 -0
R db/migrate/20210715093046_move_organization_fields_to_hero_content_block.decidim.rb => db/migrate/20210618154964_move_organization_fields_to_hero_content_block.decidim.rb +0 -0
R db/migrate/20210715093047_add_visibility_to_action_logs.decidim.rb => db/migrate/20210618154965_add_visibility_to_action_logs.decidim.rb +0 -0
R db/migrate/20210715093048_move_users_groups_to_users_table.decidim.rb => db/migrate/20210618154966_move_users_groups_to_users_table.decidim.rb +0 -0
R db/migrate/20210715093049_add_badge_switch_to_organizations.decidim.rb => db/migrate/20210618154967_add_badge_switch_to_organizations.decidim.rb +0 -0
R db/migrate/20210715093050_create_decidim_continuity_badge_statuses.decidim.rb => db/migrate/20210618154968_create_decidim_continuity_badge_statuses.decidim.rb +0 -0
R db/migrate/20210715093051_add_roles_to_memberships.decidim.rb => db/migrate/20210618154969_add_roles_to_memberships.decidim.rb +0 -0
R db/migrate/20210715093052_make_authors_polymorphic.decidim.rb => db/migrate/20210618154970_make_authors_polymorphic.decidim.rb +0 -0
R db/migrate/20210715093053_add_columns_to_pages.decidim.rb => db/migrate/20210618154971_add_columns_to_pages.decidim.rb +0 -0
R db/migrate/20210715093054_add_static_page_topics.decidim.rb => db/migrate/20210618154972_add_static_page_topics.decidim.rb +0 -0
R db/migrate/20210715093055_add_timestamps_to_components.decidim.rb => db/migrate/20210618154973_add_timestamps_to_components.decidim.rb +0 -0
R db/migrate/20210715093056_fix_user_follows.decidim.rb => db/migrate/20210618154974_fix_user_follows.decidim.rb +0 -0
R db/migrate/20210715093057_add_welcome_notification.decidim.rb => db/migrate/20210618154975_add_welcome_notification.decidim.rb +0 -0
R db/migrate/20210715093058_destroy_deleted_users_follows.decidim.rb => db/migrate/20210618154976_destroy_deleted_users_follows.decidim.rb +0 -0
R db/migrate/20210715093059_add_users_registration_mode_to_organizations.decidim.rb => db/migrate/20210618154977_add_users_registration_mode_to_organizations.decidim.rb +0 -0
R db/migrate/20210715093060_create_decidim_contextual_help_sections.decidim.rb => db/migrate/20210618154978_create_decidim_contextual_help_sections.decidim.rb +0 -0
R db/migrate/20210715093061_add_following_and_followers_counters_to_users.decidim.rb => db/migrate/20210618154979_add_following_and_followers_counters_to_users.decidim.rb +0 -0
R db/migrate/20210715093062_add_columns_to_static_page_topic.decidim.rb => db/migrate/20210618154980_add_columns_to_static_page_topic.decidim.rb +0 -0
R db/migrate/20210715093063_add_id_documents_fields_to_org.decidim.rb => db/migrate/20210618154981_add_id_documents_fields_to_org.decidim.rb +0 -0
R db/migrate/20210715093064_remove_following_users_count_from_users.decidim.rb => db/migrate/20210618154982_remove_following_users_count_from_users.decidim.rb +0 -0
R db/migrate/20210715093065_add_scope_to_action_logs.decidim.rb => db/migrate/20210618154983_add_scope_to_action_logs.decidim.rb +0 -0
R db/migrate/20210715093066_add_area_to_action_logs.decidim.rb => db/migrate/20210618154984_add_area_to_action_logs.decidim.rb +0 -0
R db/migrate/20210715093067_add_notification_types_to_users.decidim.rb => db/migrate/20210618154985_add_notification_types_to_users.decidim.rb +0 -0
R db/migrate/20210715093068_add_user_groups_switch_to_organizations.decidim.rb => db/migrate/20210618154986_add_user_groups_switch_to_organizations.decidim.rb +0 -0
R db/migrate/20210715093069_add_smtp_settings_to_decidim_organizations.decidim.rb => db/migrate/20210618154987_add_smtp_settings_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093070_add_colors_to_decidim_organization.decidim.rb => db/migrate/20210618154988_add_colors_to_decidim_organization.decidim.rb +0 -0
R db/migrate/20210715093071_add_extended_data_to_newsletters.decidim.rb => db/migrate/20210618154989_add_extended_data_to_newsletters.decidim.rb +0 -0
R db/migrate/20210715093072_add_missing_indexes.decidim.rb => db/migrate/20210618154990_add_missing_indexes.decidim.rb +0 -0
R db/migrate/20210715093073_fix_user_names.decidim.rb => db/migrate/20210618154991_fix_user_names.decidim.rb +0 -0
R db/migrate/20210715093074_add_force_users_to_authenticate_before_access_organization.decidim.rb => db/migrate/20210618154992_add_force_users_to_authenticate_before_access_organization.decidim.rb +0 -0
R db/migrate/20210715093075_add_confidential_to_doorkeeper_application.decidim.rb => db/migrate/20210618154993_add_confidential_to_doorkeeper_application.decidim.rb +0 -0
R db/migrate/20210715093076_add_uniq_index_to_decidim_metrics.decidim.rb => db/migrate/20210618154994_add_uniq_index_to_decidim_metrics.decidim.rb +0 -0
R db/migrate/20210715093077_add_lockable_to_users.decidim.rb => db/migrate/20210618154995_add_lockable_to_users.decidim.rb +0 -0
R db/migrate/20210715093078_add_omniauth_settings_to_decidim_organization.decidim.rb => db/migrate/20210618154996_add_omniauth_settings_to_decidim_organization.decidim.rb +0 -0
R db/migrate/20210715093079_add_rich_text_editor_in_public_views_to_organizations.decidim.rb => db/migrate/20210618154997_add_rich_text_editor_in_public_views_to_organizations.decidim.rb +0 -0
R db/migrate/20210715093080_add_weight_to_categories.decidim.rb => db/migrate/20210618154998_add_weight_to_categories.decidim.rb +0 -0
R db/migrate/20210715093081_add_admin_terms_of_use_body_field_to_organization.decidim.rb => db/migrate/20210618154999_add_admin_terms_of_use_body_field_to_organization.decidim.rb +0 -0
R db/migrate/20210715093082_create_decidim_endorsements.decidim.rb => db/migrate/20210618155000_create_decidim_endorsements.decidim.rb +0 -0
R db/migrate/20210715093083_add_session_token_to_users.decidim.rb => db/migrate/20210618155001_add_session_token_to_users.decidim.rb +0 -0
R db/migrate/20210715093084_remove_continuity_badges.decidim.rb => db/migrate/20210618155002_remove_continuity_badges.decidim.rb +0 -0
R db/migrate/20210715093085_add_organization_timezone.decidim.rb => db/migrate/20210618155003_add_organization_timezone.decidim.rb +0 -0
R db/migrate/20210715093086_add_direct_message_types_to_users.decidim.rb => db/migrate/20210618155004_add_direct_message_types_to_users.decidim.rb +0 -0
R db/migrate/20210715093087_index_foreign_keys_in_decidim_action_logs.decidim.rb => db/migrate/20210618155005_index_foreign_keys_in_decidim_action_logs.decidim.rb +0 -0
R db/migrate/20210715093088_index_foreign_keys_in_decidim_amendments.decidim.rb => db/migrate/20210618155006_index_foreign_keys_in_decidim_amendments.decidim.rb +0 -0
R db/migrate/20210715093089_index_foreign_keys_in_decidim_authorizations.decidim.rb => db/migrate/20210618155007_index_foreign_keys_in_decidim_authorizations.decidim.rb +0 -0
R db/migrate/20210715093090_index_foreign_keys_in_decidim_contextual_help_sections.decidim.rb => db/migrate/20210618155008_index_foreign_keys_in_decidim_contextual_help_sections.decidim.rb +0 -0
R db/migrate/20210715093091_index_foreign_keys_in_decidim_endorsements.decidim.rb => db/migrate/20210618155009_index_foreign_keys_in_decidim_endorsements.decidim.rb +0 -0
R db/migrate/20210715093092_index_foreign_keys_in_decidim_notifications.decidim.rb => db/migrate/20210618155010_index_foreign_keys_in_decidim_notifications.decidim.rb +0 -0
R db/migrate/20210715093093_index_foreign_keys_in_oauth_access_grants.decidim.rb => db/migrate/20210618155011_index_foreign_keys_in_oauth_access_grants.decidim.rb +0 -0
R db/migrate/20210715093094_add_id_to_content_blocks_scope.decidim.rb => db/migrate/20210618155012_add_id_to_content_blocks_scope.decidim.rb +0 -0
R db/migrate/20210715093095_rename_scope_column.decidim.rb => db/migrate/20210618155013_rename_scope_column.decidim.rb +0 -0
R db/migrate/20210715093096_migrate_newsletters_to_templates.decidim.rb => db/migrate/20210618155014_migrate_newsletters_to_templates.decidim.rb +0 -0
R db/migrate/20210715093097_remove_newsletter_body.decidim.rb => db/migrate/20210618155015_remove_newsletter_body.decidim.rb +0 -0
R db/migrate/20210715093098_add_index_on_content_block_scope_id.decidim.rb => db/migrate/20210618155016_add_index_on_content_block_scope_id.decidim.rb +0 -0
R db/migrate/20210715093099_add_enable_machine_translation_to_decidim_organizations.decidim.rb => db/migrate/20210618155017_add_enable_machine_translation_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093100_create_decidim_share_tokens.decidim.rb => db/migrate/20210618155018_create_decidim_share_tokens.decidim.rb +0 -0
R db/migrate/20210715093101_add_comments_max_length_to_decidim_organization.decidim.rb => db/migrate/20210618155019_add_comments_max_length_to_decidim_organization.decidim.rb +0 -0
R db/migrate/20210715093102_add_file_upload_settings_to_decidim_organizations.decidim.rb => db/migrate/20210618155020_add_file_upload_settings_to_decidim_organizations.decidim.rb +0 -0
R db/migrate/20210715093103_add_machine_translation_display_priority_to_organizations.decidim.rb => db/migrate/20210618155021_add_machine_translation_display_priority_to_organizations.decidim.rb +0 -0
R db/migrate/20210715093104_remove_show_statistics_from_organizations.decidim.rb => db/migrate/20210618155022_remove_show_statistics_from_organizations.decidim.rb +0 -0
R db/migrate/20210715093105_remove_notifications_with_continuity_badge.decidim.rb => db/migrate/20210618155023_remove_notifications_with_continuity_badge.decidim.rb +0 -0
R db/migrate/20210715093106_create_decidim_user_moderations.decidim.rb => db/migrate/20210618155024_create_decidim_user_moderations.decidim.rb +0 -0
R db/migrate/20210715093107_create_decidim_user_reports.decidim.rb => db/migrate/20210618155025_create_decidim_user_reports.decidim.rb +0 -0
R db/migrate/20210715093108_add_suspension_fields_to_decidim_users.decidim.rb => db/migrate/20210618155026_add_suspension_fields_to_decidim_users.decidim.rb +0 -0
R db/migrate/20210715093109_create_decidim_user_suspensions.decidim.rb => db/migrate/20210618155027_create_decidim_user_suspensions.decidim.rb +0 -0
R db/migrate/20210715093110_add_current_suspension_id_to_decidim_users.decidim.rb => db/migrate/20210618155028_add_current_suspension_id_to_decidim_users.decidim.rb +0 -0
R db/migrate/20210715093111_add_reported_content_to_moderations.decidim.rb => db/migrate/20210618155029_add_reported_content_to_moderations.decidim.rb +0 -0
R db/migrate/20210715093112_add_locale_to_moderation_reports.decidim.rb => db/migrate/20210618155030_add_locale_to_moderation_reports.decidim.rb +0 -0
R db/migrate/20210715093113_encrypt_authorization_metadatas.decidim.rb => db/migrate/20210618155031_encrypt_authorization_metadatas.decidim.rb +0 -0
R db/migrate/20210715093114_add_allow_public_access_to_static_pages.decidim.rb => db/migrate/20210618155032_add_allow_public_access_to_static_pages.decidim.rb +0 -0
R db/migrate/20210715093115_update_table_block_user_functionality.decidim.rb => db/migrate/20210618155033_update_table_block_user_functionality.decidim.rb +0 -0
R db/migrate/20210715093116_rename_decidim_user_fields_for_block_functionality.decidim.rb => db/migrate/20210618155034_rename_decidim_user_fields_for_block_functionality.decidim.rb +0 -0
R db/migrate/20210715093117_add_email_on_moderations_to_users.decidim.rb => db/migrate/20210618155035_add_email_on_moderations_to_users.decidim.rb +0 -0
R db/migrate/20210715093118_invalidate_all_sessions_for_deleted_users.decidim.rb => db/migrate/20210618155036_invalidate_all_sessions_for_deleted_users.decidim.rb +0 -0
R db/migrate/20210715093119_add_followable_counter_cache_to_users.decidim.rb => db/migrate/20210618155037_add_followable_counter_cache_to_users.decidim.rb +0 -0
R db/migrate/20210715093120_devise_create_decidim_admins.decidim_system.rb => db/migrate/20210618155038_devise_create_decidim_admins.decidim_system.rb +0 -0
R db/migrate/20210715093121_add_admin_participatory_process_user_roles.decidim_admin.rb => db/migrate/20210618155039_add_admin_participatory_process_user_roles.decidim_admin.rb +0 -0
R db/migrate/20210715093122_rename_participatory_process_user_roles_table.decidim_admin.rb => db/migrate/20210618155040_rename_participatory_process_user_roles_table.decidim_admin.rb +0 -0
R db/migrate/20210715093123_add_officialization_to_users.decidim_admin.rb => db/migrate/20210618155041_add_officialization_to_users.decidim_admin.rb +0 -0
R db/migrate/20210715093124_add_reason_to_decidim_impersonation_logs.decidim_admin.rb => db/migrate/20210618155042_add_reason_to_decidim_impersonation_logs.decidim_admin.rb +0 -0
R db/migrate/20210715093125_add_accepted_admin_terms_at_field_to_users.decidim_admin.rb => db/migrate/20210618155043_add_accepted_admin_terms_at_field_to_users.decidim_admin.rb +0 -0
R db/migrate/20210715093126_create_decidim_forms_questionnaires.decidim_forms.rb => db/migrate/20210618155044_create_decidim_forms_questionnaires.decidim_forms.rb +0 -0
R db/migrate/20210715093127_create_decidim_forms_questions.decidim_forms.rb => db/migrate/20210618155045_create_decidim_forms_questions.decidim_forms.rb +0 -0
R db/migrate/20210715093128_create_decidim_forms_answers.decidim_forms.rb => db/migrate/20210618155046_create_decidim_forms_answers.decidim_forms.rb +0 -0
R db/migrate/20210715093129_create_decidim_forms_answer_options.decidim_forms.rb => db/migrate/20210618155047_create_decidim_forms_answer_options.decidim_forms.rb +0 -0
R db/migrate/20210715093130_create_decidim_forms_answer_choices.decidim_forms.rb => db/migrate/20210618155048_create_decidim_forms_answer_choices.decidim_forms.rb +0 -0
R db/migrate/20210715093131_add_session_token_to_decidim_forms_answers.decidim_forms.rb => db/migrate/20210618155049_add_session_token_to_decidim_forms_answers.decidim_forms.rb +0 -0
R db/migrate/20210715093132_add_ip_hash_to_decidim_form_answers.decidim_forms.rb => db/migrate/20210618155050_add_ip_hash_to_decidim_form_answers.decidim_forms.rb +0 -0
R db/migrate/20210715093133_create_decidim_forms_display_conditions.decidim_forms.rb => db/migrate/20210618155051_create_decidim_forms_display_conditions.decidim_forms.rb +0 -0
A db/migrate/20210618155052_create_decidim_forms_question_matrix_rows.decidim_forms.rb => db/migrate/20210618155052_create_decidim_forms_question_matrix_rows.decidim_forms.rb +12 -0
@@ 0,0 1,12 @@
# frozen_string_literal: true
# This migration comes from decidim_forms (originally 20200225123810)

class CreateDecidimFormsQuestionMatrixRows < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_forms_question_matrix_rows do |t|
      t.references :decidim_question, index: { name: "index_decidim_forms_question_matrix_questionnaire_id" }
      t.integer :position, index: true
      t.jsonb :body
    end
  end
end

A db/migrate/20210618155053_add_matrix_row_id_to_decidim_forms_answer_choices.decidim_forms.rb => db/migrate/20210618155053_add_matrix_row_id_to_decidim_forms_answer_choices.decidim_forms.rb +12 -0
@@ 0,0 1,12 @@
# frozen_string_literal: true
# This migration comes from decidim_forms (originally 20200304152939)

class AddMatrixRowIdToDecidimFormsAnswerChoices < ActiveRecord::Migration[5.2]
  class AnswerChoice < ApplicationRecord
    self.table_name = :decidim_forms_answer_choices
  end

  def change
    add_column :decidim_forms_answer_choices, :decidim_question_matrix_row_id, :integer
  end
end

A db/migrate/20210618155054_add_salt_to_decidim_forms_questionnaires.decidim_forms.rb => db/migrate/20210618155054_add_salt_to_decidim_forms_questionnaires.decidim_forms.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_forms (originally 20201110152921)

class AddSaltToDecidimFormsQuestionnaires < ActiveRecord::Migration[5.2]
  class Questionnaire < ApplicationRecord
    self.table_name = :decidim_forms_questionnaires
  end

  def change
    add_column :decidim_forms_questionnaires, :salt, :string

    Questionnaire.find_each do |questionnaire|
      questionnaire.salt = Decidim::Tokenizer.random_salt
      questionnaire.save!
    end
  end
end

A db/migrate/20210618155055_add_max_characters_to_decidim_forms_questions.decidim_forms.rb => db/migrate/20210618155055_add_max_characters_to_decidim_forms_questions.decidim_forms.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_forms (originally 20210208094442)

class AddMaxCharactersToDecidimFormsQuestions < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_forms_questions, :max_characters, :integer, default: 0
  end
end

R db/migrate/20210715093138_move_authorizations_to_new_api.decidim_verifications.rb => db/migrate/20210618155056_move_authorizations_to_new_api.decidim_verifications.rb +0 -0
A db/migrate/20210618155057_create_decidim_verifications_csv_data.decidim_verifications.rb => db/migrate/20210618155057_create_decidim_verifications_csv_data.decidim_verifications.rb +13 -0
@@ 0,0 1,13 @@
# frozen_string_literal: true
# This migration comes from decidim_verifications (originally 20181227135423)

class CreateDecidimVerificationsCsvData < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_verifications_csv_data do |t|
      t.string :email
      t.references :decidim_organization, foreign_key: true, index: { name: "index_verifications_csv_census_to_organization" }

      t.timestamps
    end
  end
end

A db/migrate/20210618155058_create_decidim_verifications_conflicts.decidim_verifications.rb => db/migrate/20210618155058_create_decidim_verifications_conflicts.decidim_verifications.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_verifications (originally 20201028161118)

class CreateDecidimVerificationsConflicts < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_verifications_conflicts do |t|
      t.references :current_user, index: { name: "authorization_current_user" }, foreign_key: { to_table: :decidim_users }
      t.references :managed_user, index: { name: "authorization_managed_user" }, foreign_key: { to_table: :decidim_users }
      t.integer :times, default: 0
      t.string :unique_id
      t.boolean :solved, default: false

      t.timestamps
    end
  end
end

A db/migrate/20210618155059_add_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155059_add_participatory_processes.decidim_participatory_processes.rb +20 -0
@@ 0,0 1,20 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161005130108)

class AddParticipatoryProcesses < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_participatory_processes do |t|
      t.string :title, null: false
      t.string :slug, null: false, unique: true
      t.string :hashtag, unique: true
      t.string :subtitle, null: false
      t.text :short_description, null: false
      t.text :description, null: false
      t.references :decidim_organization,
                   foreign_key: true,
                   index: { name: "index_decidim_processes_on_decidim_organization_id" }

      t.timestamps
    end
  end
end

A db/migrate/20210618155060_translate_processes.decidim_participatory_processes.rb => db/migrate/20210618155060_translate_processes.decidim_participatory_processes.rb +18 -0
@@ 0,0 1,18 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161010102356)

class TranslateProcesses < ActiveRecord::Migration[5.0]
  def change
    remove_column :decidim_participatory_processes, :title
    remove_column :decidim_participatory_processes, :subtitle
    remove_column :decidim_participatory_processes, :description
    remove_column :decidim_participatory_processes, :short_description

    change_table :decidim_participatory_processes do |t|
      t.jsonb :title, null: false
      t.jsonb :subtitle, null: false
      t.jsonb :short_description, null: false
      t.jsonb :description, null: false
    end
  end
end

A db/migrate/20210618155061_add_hero_image_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155061_add_hero_image_to_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161011125616)

class AddHeroImageToProcesses < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_processes, :hero_image, :string
  end
end

A db/migrate/20210618155062_add_banner_image_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155062_add_banner_image_to_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161011141033)

class AddBannerImageToProcesses < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_processes, :banner_image, :string
  end
end

A db/migrate/20210618155063_add_promoted_flag_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155063_add_promoted_flag_to_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161013134732)

class AddPromotedFlagToProcesses < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_processes, :promoted, :boolean, default: false, index: true
  end
end

A db/migrate/20210618155064_add_participatory_process_steps.decidim_participatory_processes.rb => db/migrate/20210618155064_add_participatory_process_steps.decidim_participatory_processes.rb +19 -0
@@ 0,0 1,19 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161017085822)

class AddParticipatoryProcessSteps < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_participatory_process_steps do |t|
      t.jsonb :title, null: false
      t.jsonb :short_description, null: false
      t.jsonb :description, null: false
      t.datetime :start_date
      t.datetime :end_date
      t.references :decidim_participatory_process,
                   foreign_key: true,
                   index: { name: "index_decidim_processes_steps__on_decidim_process_id" }

      t.timestamps
    end
  end
end

A db/migrate/20210618155065_add_active_flag_to_step.decidim_participatory_processes.rb => db/migrate/20210618155065_add_active_flag_to_step.decidim_participatory_processes.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161019072016)

class AddActiveFlagToStep < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_process_steps, :active, :boolean, default: false

    add_index :decidim_participatory_process_steps,
              [:decidim_participatory_process_id, :active],
              unique: true,
              where: "active = 't'",
              name: "unique_index_to_avoid_duplicate_active_steps"
  end
end

A db/migrate/20210618155066_add_position_to_steps.decidim_participatory_processes.rb => db/migrate/20210618155066_add_position_to_steps.decidim_participatory_processes.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161020080756)

class AddPositionToSteps < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_process_steps, :position, :integer, null: false
    add_index :decidim_participatory_process_steps, :position, order: { position: :asc }, name: "index_order_by_position_for_steps"
    add_index :decidim_participatory_process_steps, [:decidim_participatory_process_id, :position], unique: true, name: "index_unique_position_for_process"
  end
end

A db/migrate/20210618155067_add_published_at_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155067_add_published_at_to_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161025125300)

class AddPublishedAtToProcesses < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_processes, :published_at, :datetime, index: true
  end
end

A db/migrate/20210618155068_remove_not_null_on_step_position.decidim_participatory_processes.rb => db/migrate/20210618155068_remove_not_null_on_step_position.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161107152228)

class RemoveNotNullOnStepPosition < ActiveRecord::Migration[5.0]
  def change
    change_column :decidim_participatory_process_steps, :position, :integer, null: true
  end
end

A db/migrate/20210618155069_add_index_for_process_slug_organization.decidim_participatory_processes.rb => db/migrate/20210618155069_add_index_for_process_slug_organization.decidim_participatory_processes.rb +11 -0
@@ 0,0 1,11 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161110092735)

class AddIndexForProcessSlugOrganization < ActiveRecord::Migration[5.0]
  def change
    add_index :decidim_participatory_processes,
              [:decidim_organization_id, :slug],
              unique: true,
              name: "index_unique_process_slug_and_organization"
  end
end

A db/migrate/20210618155070_create_attachments.decidim_participatory_processes.rb => db/migrate/20210618155070_create_attachments.decidim_participatory_processes.rb +19 -0
@@ 0,0 1,19 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161116115156)

class CreateAttachments < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_participatory_process_attachments do |t|
      t.jsonb :title, null: false
      t.jsonb :description, null: false
      t.string :file, null: false
      t.string :content_type, null: false
      t.string :file_size, null: false
      t.references :decidim_participatory_process,
                   foreign_key: true,
                   index: { name: "index_decidim_processes_attachments_on_decidim_process_id" }

      t.timestamps
    end
  end
end

A db/migrate/20210618155071_loosen_step_requirements.decidim_participatory_processes.rb => db/migrate/20210618155071_loosen_step_requirements.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170116135237)

class LoosenStepRequirements < ActiveRecord::Migration[5.0]
  def change
    change_column_null(:decidim_participatory_process_steps, :short_description, true)
    change_column_null(:decidim_participatory_process_steps, :description, true)
  end
end

A db/migrate/20210618155072_make_attachments_polymorphic.decidim_participatory_processes.rb => db/migrate/20210618155072_make_attachments_polymorphic.decidim_participatory_processes.rb +20 -0
@@ 0,0 1,20 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170123134023)

class MakeAttachmentsPolymorphic < ActiveRecord::Migration[5.0]
  def change
    transaction do
      remove_index :decidim_participatory_process_attachments, name: "index_decidim_processes_attachments_on_decidim_process_id"
      rename_table :decidim_participatory_process_attachments, :decidim_attachments

      add_column :decidim_attachments, :attachable_type, :string
      execute("UPDATE decidim_attachments SET attachable_type = 'Decidim::ParticipatoryProcess'")

      rename_column :decidim_attachments, :decidim_participatory_process_id, :attachable_id
      add_index :decidim_attachments, [:attachable_id, :attachable_type]

      change_column_null(:decidim_attachments, :attachable_id, false)
      change_column_null(:decidim_attachments, :attachable_type, false)
    end
  end
end

A db/migrate/20210618155073_rename_attachable_to_attached_to.decidim_participatory_processes.rb => db/migrate/20210618155073_rename_attachable_to_attached_to.decidim_participatory_processes.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170125135937)

class RenameAttachableToAttachedTo < ActiveRecord::Migration[5.0]
  def change
    remove_index :decidim_attachments, name: "index_decidim_attachments_on_attachable_id_and_attachable_type"
    remove_foreign_key :decidim_attachments, column: :attachable_id

    rename_column :decidim_attachments, :attachable_id, :attached_to_id
    rename_column :decidim_attachments, :attachable_type, :attached_to_type

    add_index :decidim_attachments, [:attached_to_id, :attached_to_type], name: "index_decidim_attachments_on_attached_to"
  end
end

A db/migrate/20210618155074_add_extra_info_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155074_add_extra_info_to_processes.decidim_participatory_processes.rb +11 -0
@@ 0,0 1,11 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170126151123)

class AddExtraInfoToProcesses < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_participatory_processes, :domain, :jsonb
    add_column :decidim_participatory_processes, :end_date, :date
    add_column :decidim_participatory_processes, :developer_group, :string
    add_column :decidim_participatory_processes, :scope, :jsonb
  end
end

A db/migrate/20210618155075_rename_extra_info_on_processes.decidim_participatory_processes.rb => db/migrate/20210618155075_rename_extra_info_on_processes.decidim_participatory_processes.rb +15 -0
@@ 0,0 1,15 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170206083118)

class RenameExtraInfoOnProcesses < ActiveRecord::Migration[5.0]
  def change
    remove_column :decidim_participatory_processes, :developer_group

    rename_column :decidim_participatory_processes, :domain, :developer_group

    add_column :decidim_participatory_processes, :local_area, :jsonb
    add_column :decidim_participatory_processes, :target, :jsonb
    add_column :decidim_participatory_processes, :participatory_scope, :jsonb
    add_column :decidim_participatory_processes, :participatory_structure, :jsonb
  end
end

A db/migrate/20210618155076_remove_steps_short_description.decidim_participatory_processes.rb => db/migrate/20210618155076_remove_steps_short_description.decidim_participatory_processes.rb +28 -0
@@ 0,0 1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170220110740)

class RemoveStepsShortDescription < ActiveRecord::Migration[5.0]
  class ParticipatoryProcessStep < ApplicationRecord
    self.table_name = :decidim_participatory_process_steps
  end

  def change
    ParticipatoryProcessStep.transaction do
      ParticipatoryProcessStep.find_each do |step|
        step.update!(
          description: new_description_for(step)
        )
      end

      remove_column :decidim_participatory_process_steps, :short_description
    end
  end

  def new_description_for(step)
    desc = {}
    step.description.keys.each do |locale|
      desc[locale] = step.short_description[locale] + step.description[locale]
    end
    desc
  end
end

A db/migrate/20210618155077_add_scopes_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155077_add_scopes_to_processes.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170221094835)

class AddScopesToProcesses < ActiveRecord::Migration[5.0]
  def change
    rename_column :decidim_participatory_processes, :scope, :meta_scope
    add_column :decidim_participatory_processes, :decidim_scope_id, :integer
  end
end

A db/migrate/20210618155078_add_participatory_process_groups.decidim_participatory_processes.rb => db/migrate/20210618155078_add_participatory_process_groups.decidim_participatory_processes.rb +18 -0
@@ 0,0 1,18 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170228142440)

class AddParticipatoryProcessGroups < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_participatory_process_groups do |t|
      t.jsonb :name, null: false
      t.jsonb :description, null: false
      t.string :hero_image

      t.references :decidim_organization, index: { name: "decidim_participatory_process_group_organization" }

      t.timestamps
    end

    add_column :decidim_participatory_processes, :decidim_participatory_process_group_id, :integer
  end
end

A db/migrate/20210618155079_change_steps_end_and_start_date_to_date.decidim_participatory_processes.rb => db/migrate/20210618155079_change_steps_end_and_start_date_to_date.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170404132616)

class ChangeStepsEndAndStartDateToDate < ActiveRecord::Migration[5.0]
  def change
    change_column :decidim_participatory_process_steps, :start_date, :date
    change_column :decidim_participatory_process_steps, :end_date, :date
  end
end

A db/migrate/20210618155080_make_features_polymorphic.decidim_participatory_processes.rb => db/migrate/20210618155080_make_features_polymorphic.decidim_participatory_processes.rb +28 -0
@@ 0,0 1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170720120135)

class MakeFeaturesPolymorphic < ActiveRecord::Migration[5.1]
  def change
    remove_index :decidim_components, name: "index_decidim_components_on_decidim_participatory_process_id"

    add_column :decidim_components, :participatory_space_type, :string

    reversible do |direction|
      direction.up do
        execute <<~SQL.squish
          UPDATE decidim_components
          SET participatory_space_type = 'Decidim::ParticipatoryProcess'
        SQL
      end
    end

    rename_column :decidim_components, :decidim_participatory_process_id, :participatory_space_id

    add_index :decidim_components,
              [:participatory_space_id, :participatory_space_type],
              name: "index_decidim_components_on_decidim_participatory_space"

    change_column_null :decidim_components, :participatory_space_id, false
    change_column_null :decidim_components, :participatory_space_type, false
  end
end

A db/migrate/20210618155081_add_show_statistics_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155081_add_show_statistics_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170725085104)

class AddShowStatisticsToParticipatoryProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :show_statistics, :boolean, default: true
  end
end

A db/migrate/20210618155082_attachment_description_nullable.decidim_participatory_processes.rb => db/migrate/20210618155082_attachment_description_nullable.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170804125402)

class AttachmentDescriptionNullable < ActiveRecord::Migration[5.1]
  def change
    change_column :decidim_attachments, :description, :jsonb, null: true
  end
end

A db/migrate/20210618155083_add_announcement_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155083_add_announcement_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170808080905)

class AddAnnouncementToParticipatoryProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :announcement, :jsonb
  end
end

A db/migrate/20210618155084_add_scopes_enabled_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155084_add_scopes_enabled_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170809084005)

class AddScopesEnabledToParticipatoryProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :scopes_enabled, :boolean, null: false, default: true
  end
end

A db/migrate/20210618155085_add_start_date_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155085_add_start_date_to_processes.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20170830081725)

class AddStartDateToProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :start_date, :date
    ActiveRecord::Base.connection.execute("UPDATE decidim_participatory_processes SET start_date = created_at")
  end
end

A db/migrate/20210618155086_add_weight_to_attachments.decidim_participatory_processes.rb => db/migrate/20210618155086_add_weight_to_attachments.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20171215081244)

class AddWeightToAttachments < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_attachments, :weight, :integer, null: false, default: 0
  end
end

A db/migrate/20210618155087_add_attachment_collection_to_attachments.decidim_participatory_processes.rb => db/migrate/20210618155087_add_attachment_collection_to_attachments.decidim_participatory_processes.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20171215141722)

class AddAttachmentCollectionToAttachments < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_attachments, :attachment_collection_id, :integer, null: true, index: { name: "index_decidim_attachments_attachment_collection_id" }
    add_foreign_key :decidim_attachments, :decidim_attachment_collections, column: :attachment_collection_id, on_delete: :nullify,
                                                                           name: "fk_decidim_attachments_attachment_collection_id"
  end
end

A db/migrate/20210618155088_add_private_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155088_add_private_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20180122110007)

class AddPrivateToParticipatoryProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :private_space, :boolean, default: false
  end
end

A db/migrate/20210618155089_add_reference_to_processes.decidim_participatory_processes.rb => db/migrate/20210618155089_add_reference_to_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20180125102537)

class AddReferenceToProcesses < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_participatory_processes, :reference, :string
  end
end

A db/migrate/20210618155090_add_cta_url_and_text_to_steps.decidim_participatory_processes.rb => db/migrate/20210618155090_add_cta_url_and_text_to_steps.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20180926082635)

class AddCtaUrlAndTextToSteps < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_process_steps, :cta_text, :jsonb, default: {}
    add_column :decidim_participatory_process_steps, :cta_path, :string
  end
end

A db/migrate/20210618155091_add_area_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155091_add_area_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20190322125517)

class AddAreaToParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_reference :decidim_participatory_processes, :decidim_area, index: true
  end
end

A db/migrate/20210618155092_add_scope_type_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155092_add_scope_type_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20200114142253)

class AddScopeTypeToParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_reference :decidim_participatory_processes, :decidim_scope_type, foreign_key: true, index: true
  end
end

A db/migrate/20210618155093_add_show_metrics_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155093_add_show_metrics_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20200204154917)

class AddShowMetricsToParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_processes, :show_metrics, :boolean, default: true
  end
end

A db/migrate/20210618155094_index_foreign_keys_in_decidim_attachments.decidim_participatory_processes.rb => db/migrate/20210618155094_index_foreign_keys_in_decidim_attachments.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20200320105908)

class IndexForeignKeysInDecidimAttachments < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_attachments, :attachment_collection_id
  end
end

A db/migrate/20210618155095_index_foreign_keys_in_decidim_participatory_process_user_roles.decidim_participatory_processes.rb => db/migrate/20210618155095_index_foreign_keys_in_decidim_participatory_process_user_roles.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20200320105924)

class IndexForeignKeysInDecidimParticipatoryProcessUserRoles < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_participatory_process_user_roles, :decidim_user_id, name: "idx_proces_user_role_on_user_id"
  end
end

A db/migrate/20210618155096_index_foreign_keys_in_decidim_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155096_index_foreign_keys_in_decidim_participatory_processes.decidim_participatory_processes.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20200320105925)

class IndexForeignKeysInDecidimParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_participatory_processes, :decidim_participatory_process_group_id, name: "idx_process_on_process_group_id"
    add_index :decidim_participatory_processes, :decidim_scope_id, name: "idx_process_on_scope_id"
  end
end

A db/migrate/20210618155097_fix_attachments_titles.decidim_participatory_processes.rb => db/migrate/20210618155097_fix_attachments_titles.decidim_participatory_processes.rb +36 -0
@@ 0,0 1,36 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20201006072346)

class FixAttachmentsTitles < ActiveRecord::Migration[5.2]
  def up
    reset_column_information

    PaperTrail.request(enabled: false) do
      Decidim::Attachment.find_each do |attachment|
        next if attachment.title.is_a?(Hash) && attachment.description.is_a?(Hash)

        attached_to = attachment.attached_to
        locale = attached_to.try(:locale).presence ||
                 attached_to.try(:default_locale).presence ||
                 attached_to.try(:organization).try(:default_locale).presence ||
                 Decidim.default_locale

        # rubocop:disable Rails/SkipsModelValidations
        values = {}
        values[:title] = { locale => attachment.title } unless attachment.title.is_a?(Hash)
        values[:description] = { locale => attachment.description } unless attachment.description.is_a?(Hash)

        attachment.update_columns(values)
        # rubocop:enable Rails/SkipsModelValidations
      end
    end

    reset_column_information
  end

  def down; end

  def reset_column_information
    Decidim::Attachment.reset_column_information
  end
end

A db/migrate/20210618155098_add_hashtag_to_participatory_process_groups.decidim_participatory_processes.rb => db/migrate/20210618155098_add_hashtag_to_participatory_process_groups.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20201007215105)

class AddHashtagToParticipatoryProcessGroups < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_process_groups, :hashtag, :string
  end
end

A db/migrate/20210618155099_add_metadata_columns_to_participatory_process_groups.decidim_participatory_processes.rb => db/migrate/20210618155099_add_metadata_columns_to_participatory_process_groups.decidim_participatory_processes.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20201008154315)

class AddMetadataColumnsToParticipatoryProcessGroups < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_process_groups, :group_url, :string
    add_column :decidim_participatory_process_groups, :developer_group, :jsonb
    add_column :decidim_participatory_process_groups, :local_area, :jsonb
    add_column :decidim_participatory_process_groups, :meta_scope, :jsonb
    add_column :decidim_participatory_process_groups, :target, :jsonb
    add_column :decidim_participatory_process_groups, :participatory_scope, :jsonb
    add_column :decidim_participatory_process_groups, :participatory_structure, :jsonb
  end
end

A db/migrate/20210618155100_rename_name_column_to_title_in_decidim_participatory_process_groups.decidim_participatory_processes.rb => db/migrate/20210618155100_rename_name_column_to_title_in_decidim_participatory_process_groups.decidim_participatory_processes.rb +40 -0
@@ 0,0 1,40 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20201013105520)

class RenameNameColumnToTitleInDecidimParticipatoryProcessGroups < ActiveRecord::Migration[5.2]
  def up
    rename_column :decidim_participatory_process_groups, :name, :title
    PaperTrail::Version.where(item_type: "Decidim::ParticipatoryProcessGroup").each do |version|
      # rubocop:disable Rails/SkipsModelValidations
      version.update_attribute(:object_changes, version.object_changes.gsub(/^name:/, "title:")) if version.object_changes.present?
      # rubocop:enable Rails/SkipsModelValidations

      next unless version.object.present? && version.object.has_key?("name")

      object = version.object
      object["title"] = object.delete("name")

      # rubocop:disable Rails/SkipsModelValidations
      version.update_attribute(:object, object)
      # rubocop:enable Rails/SkipsModelValidations
    end
  end

  def down
    PaperTrail::Version.where(item_type: "Decidim::ParticipatoryProcessGroup").each do |version|
      # rubocop:disable Rails/SkipsModelValidations
      version.update_attribute(:object_changes, version.object_changes.gsub(/^title:/, "name:")) if version.object_changes.present?
      # rubocop:enable Rails/SkipsModelValidations

      next unless version.object.present? && version.object.has_key?("title")

      object = version.object
      object["name"] = object.delete("title")

      # rubocop:disable Rails/SkipsModelValidations
      version.update_attribute(:object, object)
      # rubocop:enable Rails/SkipsModelValidations
    end
    rename_column :decidim_participatory_process_groups, :title, :name
  end
end

A db/migrate/20210618155101_add_promoted_flag_to_decidim_participatory_process_groups.decidim_participatory_processes.rb => db/migrate/20210618155101_add_promoted_flag_to_decidim_participatory_process_groups.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20201030133444)

class AddPromotedFlagToDecidimParticipatoryProcessGroups < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_process_groups, :promoted, :boolean, default: false, index: true
  end
end

A db/migrate/20210618155102_add_weight_field_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155102_add_weight_field_to_participatory_processes.decidim_participatory_processes.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20210204154593)

class AddWeightFieldToParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_processes, :weight, :integer, null: false, default: true
  end
end

A db/migrate/20210618155103_add_followable_counter_cache_to_participatory_processes.decidim_participatory_processes.rb => db/migrate/20210618155103_add_followable_counter_cache_to_participatory_processes.decidim_participatory_processes.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20210310120750)

class AddFollowableCounterCacheToParticipatoryProcesses < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_participatory_processes, :follows_count, :integer, null: false, default: 0, index: true

    reversible do |dir|
      dir.up do
        Decidim::ParticipatoryProcess.reset_column_information
        Decidim::ParticipatoryProcess.find_each do |record|
          record.class.reset_counters(record.id, :follows)
        end
      end
    end
  end
end

A db/migrate/20210618155104_add_assemblies.decidim_assemblies.rb => db/migrate/20210618155104_add_assemblies.decidim_assemblies.rb +38 -0
@@ 0,0 1,38 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20170727190859)

class AddAssemblies < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_assemblies do |t|
      t.string :slug, null: false
      t.string :hashtag

      t.integer :decidim_organization_id,
                foreign_key: true,
                index: { name: "index_decidim_assemblies_on_decidim_organization_id" }

      t.datetime :created_at, null: false
      t.datetime :updated_at, null: false
      t.jsonb :title, null: false
      t.jsonb :subtitle, null: false
      t.jsonb :short_description, null: false
      t.jsonb :description, null: false
      t.string :hero_image
      t.string :banner_image
      t.boolean :promoted, default: false
      t.datetime :published_at
      t.jsonb :developer_group
      t.jsonb :meta_scope
      t.jsonb :local_area
      t.jsonb :target
      t.jsonb :participatory_scope
      t.jsonb :participatory_structure
      t.boolean :show_statistics, default: false
      t.integer :decidim_scope_id

      t.index [:decidim_organization_id, :slug],
              name: "index_unique_assembly_slug_and_organization",
              unique: true
    end
  end
end

A db/migrate/20210618155105_add_scopes_enabled_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155105_add_scopes_enabled_to_assemblies.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20170822153055)

class AddScopesEnabledToAssemblies < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_assemblies, :scopes_enabled, :boolean, null: false, default: true
  end
end

A db/migrate/20210618155106_add_assembly_user_roles.decidim_assemblies.rb => db/migrate/20210618155106_add_assembly_user_roles.decidim_assemblies.rb +18 -0
@@ 0,0 1,18 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180109105917)

class AddAssemblyUserRoles < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_assembly_user_roles do |t|
      t.integer :decidim_user_id
      t.integer :decidim_assembly_id
      t.string :role
      t.timestamps
    end

    add_index :decidim_assembly_user_roles,
              [:decidim_assembly_id, :decidim_user_id, :role],
              unique: true,
              name: "index_unique_user_and_assembly_role"
  end
end

A db/migrate/20210618155107_add_private_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155107_add_private_to_assemblies.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180124083729)

class AddPrivateToAssemblies < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_assemblies, :private_space, :boolean, default: false
  end
end

A db/migrate/20210618155108_add_reference_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155108_add_reference_to_assemblies.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180125104426)

class AddReferenceToAssemblies < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_assemblies, :reference, :string
  end
end

A db/migrate/20210618155109_add_area_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155109_add_area_to_assemblies.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180216091553)

class AddAreaToAssemblies < ActiveRecord::Migration[5.1]
  def change
    add_reference :decidim_assemblies, :decidim_area, index: true
  end
end

A db/migrate/20210618155110_add_parent_child_relation_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155110_add_parent_child_relation_to_assemblies.decidim_assemblies.rb +23 -0
@@ 0,0 1,23 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180226103942)

class AddParentChildRelationToAssemblies < ActiveRecord::Migration[5.1]
  def change
    unless extension_enabled?("ltree")
      begin
        # required so that test suite works in ci env
        enable_extension "ltree"
      rescue StandardError
        raise <<-MSG.squish
        Decidim requires the ltree extension to be enabled in your PostgreSQL.
        You can do so by running `CREATE EXTENSION IF NOT EXISTS "ltree";` on the current DB as a PostgreSQL
        super user.
        MSG
      end
    end

    add_reference :decidim_assemblies, :parent, index: { name: :decidim_assemblies_assemblies_on_parent_id }
    add_column :decidim_assemblies, :parents_path, :ltree
    add_column :decidim_assemblies, :children_count, :integer, default: 0
  end
end

A db/migrate/20210618155111_add_fields_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155111_add_fields_to_assemblies.decidim_assemblies.rb +26 -0
@@ 0,0 1,26 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180302121116)

class AddFieldsToAssemblies < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_assemblies, :purpose_of_action, :jsonb
    add_column :decidim_assemblies, :composition, :jsonb
    add_column :decidim_assemblies, :assembly_type, :string
    add_column :decidim_assemblies, :assembly_type_other, :jsonb
    add_column :decidim_assemblies, :creation_date, :date
    add_column :decidim_assemblies, :created_by, :string
    add_column :decidim_assemblies, :created_by_other, :jsonb
    add_column :decidim_assemblies, :duration, :date
    add_column :decidim_assemblies, :included_at, :date
    add_column :decidim_assemblies, :closing_date, :date
    add_column :decidim_assemblies, :closing_date_reason, :jsonb
    add_column :decidim_assemblies, :internal_organisation, :jsonb
    add_column :decidim_assemblies, :is_transparent, :boolean, default: true
    add_column :decidim_assemblies, :special_features, :jsonb
    add_column :decidim_assemblies, :twitter_handler, :string
    add_column :decidim_assemblies, :instagram_handler, :string
    add_column :decidim_assemblies, :facebook_handler, :string
    add_column :decidim_assemblies, :youtube_handler, :string
    add_column :decidim_assemblies, :github_handler, :string
  end
end

A db/migrate/20210618155112_add_assembly_members.decidim_assemblies.rb => db/migrate/20210618155112_add_assembly_members.decidim_assemblies.rb +22 -0
@@ 0,0 1,22 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180314143822)

class AddAssemblyMembers < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_assembly_members do |t|
      t.references :decidim_assembly, index: true
      t.integer :weight, null: false, default: 0, index: { name: "index_decidim_assembly_members_on_weight" }
      t.string :full_name
      t.string :gender
      t.date :birthday
      t.string :birthplace
      t.date :designation_date
      t.string :designation_mode
      t.string :position
      t.string :position_other
      t.date :ceased_date

      t.timestamps
    end
  end
end

A db/migrate/20210618155113_assembly_member_belongs_to_user.decidim_assemblies.rb => db/migrate/20210618155113_assembly_member_belongs_to_user.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180426162405)

class AssemblyMemberBelongsToUser < ActiveRecord::Migration[5.1]
  def change
    add_reference :decidim_assembly_members, :decidim_user, index: { name: "index_decidim_assembly_members_on_decidim_user_id" }
  end
end

A db/migrate/20210618155114_update_assembly_members_index.decidim_assemblies.rb => db/migrate/20210618155114_update_assembly_members_index.decidim_assemblies.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20180515073049)

class UpdateAssemblyMembersIndex < ActiveRecord::Migration[5.1]
  def change
    remove_index :decidim_assembly_members, column: :weight
    add_index :decidim_assembly_members, [:weight, :created_at]
  end
end

A db/migrate/20210618155115_reset_negative_children_count_counters.decidim_assemblies.rb => db/migrate/20210618155115_reset_negative_children_count_counters.decidim_assemblies.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20190215093700)

class ResetNegativeChildrenCountCounters < ActiveRecord::Migration[5.2]
  def change
    ids = Decidim::Assembly.where("children_count < 0").pluck(:id)
    ids.each { |id| Decidim::Assembly.reset_counters(id, :children_count) }
  end
end

A db/migrate/20210618155116_create_decidim_assembly_types.decidim_assemblies.rb => db/migrate/20210618155116_create_decidim_assembly_types.decidim_assemblies.rb +20 -0
@@ 0,0 1,20 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20200108113855)

class CreateDecidimAssemblyTypes < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_assemblies_types do |t|
      t.jsonb :title, null: false

      t.integer :decidim_organization_id,
                foreign_key: true,
                index: {
                  name: "index_decidim_assemblies_types_on_decidim_organization_id"
                }

      t.timestamps
    end

    add_reference :decidim_assemblies, :decidim_assemblies_type, index: true, foreign_key: true
  end
end

R db/migrate/20210715093199_migrate_decidim_assembly_types.decidim_assemblies.rb => db/migrate/20210618155117_migrate_decidim_assembly_types.decidim_assemblies.rb +0 -0
A db/migrate/20210618155118_index_foreign_keys_in_decidim_assemblies.decidim_assemblies.rb => db/migrate/20210618155118_index_foreign_keys_in_decidim_assemblies.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20200320105906)

class IndexForeignKeysInDecidimAssemblies < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_assemblies, :decidim_scope_id
  end
end

A db/migrate/20210618155119_index_foreign_keys_in_decidim_assembly_user_roles.decidim_assemblies.rb => db/migrate/20210618155119_index_foreign_keys_in_decidim_assembly_user_roles.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20200320105907)

class IndexForeignKeysInDecidimAssemblyUserRoles < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_assembly_user_roles, :decidim_user_id
  end
end

A db/migrate/20210618155120_remove_legacy_decidim_assembly_type.decidim_assemblies.rb => db/migrate/20210618155120_remove_legacy_decidim_assembly_type.decidim_assemblies.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20200416132109)

class RemoveLegacyDecidimAssemblyType < ActiveRecord::Migration[5.2]
  def change
    remove_column :decidim_assemblies, :assembly_type, :string
    remove_column :decidim_assemblies, :assembly_type_other, :jsonb
  end
end

A db/migrate/20210618155121_create_decidim_assemblies_settings.decidim_assemblies.rb => db/migrate/20210618155121_create_decidim_assemblies_settings.decidim_assemblies.rb +11 -0
@@ 0,0 1,11 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20200430202456)

class CreateDecidimAssembliesSettings < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_assemblies_settings do |t|
      t.boolean :enable_organization_chart, default: true
      t.references :decidim_organization, foreign_key: true
    end
  end
end

A db/migrate/20210618155122_add_weight_field_to_assembly.decidim_assemblies.rb => db/migrate/20210618155122_add_weight_field_to_assembly.decidim_assemblies.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20210204152393)

class AddWeightFieldToAssembly < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_assemblies, :weight, :integer, null: false, default: true
  end
end

A db/migrate/20210618155123_add_followable_counter_cache_to_assemblies.decidim_assemblies.rb => db/migrate/20210618155123_add_followable_counter_cache_to_assemblies.decidim_assemblies.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_assemblies (originally 20210310120444)

class AddFollowableCounterCacheToAssemblies < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_assemblies, :follows_count, :integer, null: false, default: 0, index: true

    reversible do |dir|
      dir.up do
        Decidim::Assembly.reset_column_information
        Decidim::Assembly.find_each do |record|
          record.class.reset_counters(record.id, :follows)
        end
      end
    end
  end
end

A db/migrate/20210618155124_create_decidim_pages.decidim_pages.rb => db/migrate/20210618155124_create_decidim_pages.decidim_pages.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_pages (originally 20161116121353)

class CreateDecidimPages < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_pages_pages do |t|
      t.jsonb :title
      t.jsonb :body
      t.references :decidim_feature, index: true

      t.timestamps
    end
  end
end

A db/migrate/20210618155125_add_commentable_to_pages.decidim_pages.rb => db/migrate/20210618155125_add_commentable_to_pages.decidim_pages.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_pages (originally 20161214150429)

class AddCommentableToPages < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_pages_pages, :commentable, :boolean, null: false, default: false
  end
end

A db/migrate/20210618155126_remove_commentable_flag_from_pages.decidim_pages.rb => db/migrate/20210618155126_remove_commentable_flag_from_pages.decidim_pages.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_pages (originally 20170110145040)

class RemoveCommentableFlagFromPages < ActiveRecord::Migration[5.0]
  def change
    remove_column :decidim_pages_pages, :commentable
  end
end

A db/migrate/20210618155127_remove_page_feature_titles.decidim_pages.rb => db/migrate/20210618155127_remove_page_feature_titles.decidim_pages.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_pages (originally 20170220091402)

class RemovePageFeatureTitles < ActiveRecord::Migration[5.0]
  def change
    remove_column :decidim_pages_pages, :title
  end
end

A db/migrate/20210618155128_rename_features_to_components_at_pages.decidim_pages.rb => db/migrate/20210618155128_rename_features_to_components_at_pages.decidim_pages.rb +12 -0
@@ 0,0 1,12 @@
# frozen_string_literal: true
# This migration comes from decidim_pages (originally 20180305133658)

class RenameFeaturesToComponentsAtPages < ActiveRecord::Migration[5.1]
  def change
    rename_column :decidim_pages_pages, :decidim_feature_id, :decidim_component_id

    if index_name_exists?(:decidim_pages_pages, "index_decidim_pages_pages_on_decidim_feature_id")
      rename_index :decidim_pages_pages, "index_decidim_pages_pages_on_decidim_feature_id", "index_decidim_pages_pages_on_decidim_component_id"
    end
  end
end

A db/migrate/20210618155129_create_comments.decidim_comments.rb => db/migrate/20210618155129_create_comments.decidim_comments.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20161130143508)

class CreateComments < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_comments_comments do |t|
      t.text :body, null: false
      t.references :decidim_commentable, null: false, polymorphic: true, index: { name: "decidim_comments_comment_commentable" }
      t.references :decidim_author, null: false, index: { name: "decidim_comments_comment_author" }

      t.timestamps
    end

    add_index :decidim_comments_comments, :created_at
  end
end

A db/migrate/20210618155130_add_depth_to_comments.decidim_comments.rb => db/migrate/20210618155130_add_depth_to_comments.decidim_comments.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20161214082645)

class AddDepthToComments < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_comments_comments, :depth, :integer, null: false, default: 0
  end
end

A db/migrate/20210618155131_add_alignment_to_comments.decidim_comments.rb => db/migrate/20210618155131_add_alignment_to_comments.decidim_comments.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20161216102820)

class AddAlignmentToComments < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_comments_comments, :alignment, :integer, null: false, default: 0
  end
end

A db/migrate/20210618155132_create_comment_votes.decidim_comments.rb => db/migrate/20210618155132_create_comment_votes.decidim_comments.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20161219150806)

class CreateCommentVotes < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_comments_comment_votes do |t|
      t.integer :weight, null: false
      t.references :decidim_comment, null: false, index: { name: "decidim_comments_comment_vote_comment" }
      t.references :decidim_author, null: false, index: { name: "decidim_comments_comment_vote_author" }

      t.timestamps
    end

    add_index :decidim_comments_comment_votes, [:decidim_comment_id, :decidim_author_id], unique: true, name: "decidim_comments_comment_vote_comment_author_unique"
  end
end

A db/migrate/20210618155133_add_user_group_id_to_comments.decidim_comments.rb => db/migrate/20210618155133_add_user_group_id_to_comments.decidim_comments.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20170123102043)

class AddUserGroupIdToComments < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_comments_comments, :decidim_user_group_id, :integer, index: true
  end
end

A db/migrate/20210618155134_add_root_commentable_to_comments.decidim_comments.rb => db/migrate/20210618155134_add_root_commentable_to_comments.decidim_comments.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20170504085413)

class AddRootCommentableToComments < ActiveRecord::Migration[5.0]
  def change
    change_table :decidim_comments_comments do |t|
      t.references :decidim_root_commentable, polymorphic: true, index: { name: "decidim_comments_comment_root_commentable" }
    end
  end
end

A db/migrate/20210618155135_update_root_commentable_for_comments.decidim_comments.rb => db/migrate/20210618155135_update_root_commentable_for_comments.decidim_comments.rb +27 -0
@@ 0,0 1,27 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20170510091348)

class UpdateRootCommentableForComments < ActiveRecord::Migration[5.0]
  def up
    # rubocop:disable Rails/SkipsModelValidations
    Decidim::Comments::Comment.where(depth: 0).update_all(
      "decidim_root_commentable_id = decidim_commentable_id, decidim_root_commentable_type = decidim_commentable_type"
    )
    # rubocop:enable Rails/SkipsModelValidations

    Decidim::Comments::Comment.where("depth > 0").find_each do |comment|
      comment.root_commentable = root_commentable(comment)
      comment.save(validate: false)
    end
  end

  def down; end

  private

  def root_commentable(comment)
    return comment.commentable if comment.depth.zero?

    root_commentable comment.commentable
  end
end

A db/migrate/20210618155136_set_root_commentable_null_constraints.decidim_comments.rb => db/migrate/20210618155136_set_root_commentable_null_constraints.decidim_comments.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20170510091409)

class SetRootCommentableNullConstraints < ActiveRecord::Migration[5.0]
  def change
    change_column_null(:decidim_comments_comments, :decidim_root_commentable_id, false)
    change_column_null(:decidim_comments_comments, :decidim_root_commentable_type, false)
  end
end

A db/migrate/20210618155137_fix_user_groups_ids_in_comments.decidim_comments.rb => db/migrate/20210618155137_fix_user_groups_ids_in_comments.decidim_comments.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20181003080320)

class FixUserGroupsIdsInComments < ActiveRecord::Migration[5.2]
  # rubocop:disable Rails/SkipsModelValidations
  def change
    Decidim::UserGroup.find_each do |group|
      old_id = group.extended_data["old_user_group_id"]
      next unless old_id

      Decidim::Comments::Comment
        .where(decidim_user_group_id: old_id)
        .update_all(decidim_user_group_id: group.id)
    end
  end
  # rubocop:enable Rails/SkipsModelValidations
end

A db/migrate/20210618155138_make_authors_polymorphic_for_comments.decidim_comments.rb => db/migrate/20210618155138_make_authors_polymorphic_for_comments.decidim_comments.rb +28 -0
@@ 0,0 1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20181016142511)

class MakeAuthorsPolymorphicForComments < ActiveRecord::Migration[5.2]
  class Comment < ApplicationRecord
    self.table_name = :decidim_comments_comments
  end
  def change
    add_column :decidim_comments_comments, :decidim_author_type, :string

    reversible do |direction|
      direction.up do
        execute <<~SQL.squish
          UPDATE decidim_comments_comments
          SET decidim_author_type = 'Decidim::UserBaseEntity'
        SQL
      end
    end

    add_index :decidim_comments_comments,
              [:decidim_author_id, :decidim_author_type],
              name: "index_decidim_comments_comments_on_decidim_author"

    change_column_null :decidim_comments_comments, :decidim_author_id, false
    change_column_null :decidim_comments_comments, :decidim_author_type, false
    Comment.reset_column_information
  end
end

A db/migrate/20210618155139_make_author_polymorphic_for_comment_votes.decidim_comments.rb => db/migrate/20210618155139_make_author_polymorphic_for_comment_votes.decidim_comments.rb +28 -0
@@ 0,0 1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20181019092928)

class MakeAuthorPolymorphicForCommentVotes < ActiveRecord::Migration[5.2]
  class CommentVote < ApplicationRecord
    self.table_name = :decidim_comments_comment_votes
  end
  def change
    add_column :decidim_comments_comment_votes, :decidim_author_type, :string

    reversible do |direction|
      direction.up do
        execute <<~SQL.squish
          UPDATE decidim_comments_comment_votes
          SET decidim_author_type = 'Decidim::UserBaseEntity'
        SQL
      end
    end

    add_index :decidim_comments_comment_votes,
              [:decidim_author_id, :decidim_author_type],
              name: "index_decidim_comments_comment_votes_on_decidim_author"

    change_column_null :decidim_comments_comment_votes, :decidim_author_id, false
    change_column_null :decidim_comments_comment_votes, :decidim_author_type, false
    CommentVote.reset_column_information
  end
end

A db/migrate/20210618155140_index_foreign_keys_in_decidim_comments_comments.decidim_comments.rb => db/migrate/20210618155140_index_foreign_keys_in_decidim_comments_comments.decidim_comments.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20200320105911)

class IndexForeignKeysInDecidimCommentsComments < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_comments_comments, :decidim_user_group_id
  end
end

A db/migrate/20210618155141_make_comments_handle_i18n.decidim_comments.rb => db/migrate/20210618155141_make_comments_handle_i18n.decidim_comments.rb +42 -0
@@ 0,0 1,42 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20200706123136)

class MakeCommentsHandleI18n < ActiveRecord::Migration[5.2]
  class User < ApplicationRecord
    self.table_name = :decidim_users
  end

  class Comment < ApplicationRecord
    self.table_name = :decidim_comments_comments
  end

  class Organization < ApplicationRecord
    self.table_name = :decidim_organizations
  end

  def change
    add_column :decidim_comments_comments, :new_body, :jsonb

    User.reset_column_information
    Comment.reset_column_information
    Organization.reset_column_information

    Comment.find_each do |comment|
      locale, org_id = User.where(id: comment.decidim_author_id).pluck(:locale, :decidim_organization_id).first
      locale = locale.presence || Organization.find(org_id).default_locale

      comment.new_body = {
        locale => comment.body
      }

      comment.save!
    end

    remove_column :decidim_comments_comments, :body
    rename_column :decidim_comments_comments, :new_body, :body

    User.reset_column_information
    Comment.reset_column_information
    Organization.reset_column_information
  end
end

A db/migrate/20210618155142_add_commentable_counter_cache_to_comments.decidim_comments.rb => db/migrate/20210618155142_add_commentable_counter_cache_to_comments.decidim_comments.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_comments (originally 20200828101910)

class AddCommentableCounterCacheToComments < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_comments_comments, :comments_count, :integer, null: false, default: 0, index: true
    Decidim::Comments::Comment.reset_column_information
    Decidim::Comments::Comment.find_each(&:update_comments_count)
  end
end

A db/migrate/20210618155143_create_meetings.decidim_meetings.rb => db/migrate/20210618155143_create_meetings.decidim_meetings.rb +23 -0
@@ 0,0 1,23 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20161130121354)

class CreateMeetings < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_meetings_meetings do |t|
      t.jsonb :title
      t.jsonb :description
      t.jsonb :short_description
      t.datetime :start_time
      t.datetime :end_time
      t.text :address
      t.jsonb :location
      t.jsonb :location_hints
      t.references :decidim_feature, index: true
      t.references :decidim_author, index: true
      t.references :decidim_scope, index: true
      t.references :decidim_category, index: true

      t.timestamps
    end
  end
end

A db/migrate/20210618155144_close_a_meeting.decidim_meetings.rb => db/migrate/20210618155144_close_a_meeting.decidim_meetings.rb +12 -0
@@ 0,0 1,12 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170110142105)

class CloseAMeeting < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_meetings_meetings, :closing_report, :jsonb
    add_column :decidim_meetings_meetings, :attendees_count, :integer
    add_column :decidim_meetings_meetings, :contributions_count, :integer
    add_column :decidim_meetings_meetings, :attending_organizations, :text
    add_column :decidim_meetings_meetings, :closed_at, :time, index: true
  end
end

A db/migrate/20210618155145_add_latitude_and_longitude_to_meetings.decidim_meetings.rb => db/migrate/20210618155145_add_latitude_and_longitude_to_meetings.decidim_meetings.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170123151650)

class AddLatitudeAndLongitudeToMeetings < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_meetings_meetings, :latitude, :float
    add_column :decidim_meetings_meetings, :longitude, :float
  end
end

A db/migrate/20210618155146_remove_short_description_from_meetings.decidim_meetings.rb => db/migrate/20210618155146_remove_short_description_from_meetings.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170129153716)

class RemoveShortDescriptionFromMeetings < ActiveRecord::Migration[5.0]
  def change
    remove_column :decidim_meetings_meetings, :short_description
  end
end

A db/migrate/20210618155147_add_reference_to_meetings.decidim_meetings.rb => db/migrate/20210618155147_add_reference_to_meetings.decidim_meetings.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170215132546)

class AddReferenceToMeetings < ActiveRecord::Migration[5.0]
  class Meeting < ApplicationRecord
    self.table_name = :decidim_meetings_meetings
  end

  def change
    add_column :decidim_meetings_meetings, :reference, :string
    Meeting.find_each(&:save)
    change_column_null :decidim_meetings_meetings, :reference, false
  end
end

A db/migrate/20210618155148_remove_not_null_reference_meetings.decidim_meetings.rb => db/migrate/20210618155148_remove_not_null_reference_meetings.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170410074252)

class RemoveNotNullReferenceMeetings < ActiveRecord::Migration[5.0]
  def change
    change_column_null :decidim_meetings_meetings, :reference, true
  end
end

A db/migrate/20210618155149_migrate_meetings_category.decidim_meetings.rb => db/migrate/20210618155149_migrate_meetings_category.decidim_meetings.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170612101925)

class MigrateMeetingsCategory < ActiveRecord::Migration[5.1]
  def change
    # Create categorizations ensuring database integrity
    execute('
      INSERT INTO decidim_categorizations(decidim_category_id, categorizable_id, categorizable_type, created_at, updated_at)
        SELECT decidim_category_id, decidim_meetings_meetings.id, \'Decidim::Meetings::Meeting\', NOW(), NOW()
        FROM decidim_meetings_meetings
        INNER JOIN decidim_categories ON decidim_categories.id = decidim_meetings_meetings.decidim_category_id
    ')
    # Remove unused column
    remove_column :decidim_meetings_meetings, :decidim_category_id
  end
end

A db/migrate/20210618155150_add_registration_attributes_to_meetings.decidim_meetings.rb => db/migrate/20210618155150_add_registration_attributes_to_meetings.decidim_meetings.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170810120836)

class AddRegistrationAttributesToMeetings < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_meetings_meetings, :registrations_enabled, :boolean, null: false, default: false
    add_column :decidim_meetings_meetings, :available_slots, :integer, null: false, default: 0
    add_column :decidim_meetings_meetings, :registration_terms, :jsonb
  end
end

A db/migrate/20210618155151_create_registrations.decidim_meetings.rb => db/migrate/20210618155151_create_registrations.decidim_meetings.rb +15 -0
@@ 0,0 1,15 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20170810131100)

class CreateRegistrations < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_meetings_registrations do |t|
      t.references :decidim_user, null: false, index: true
      t.references :decidim_meeting, null: false, index: true

      t.timestamps
    end

    add_index :decidim_meetings_registrations, [:decidim_user_id, :decidim_meeting_id], unique: true, name: "decidim_meetings_registrations_user_meeting_unique"
  end
end

A db/migrate/20210618155152_rename_features_to_components_at_meetings.decidim_meetings.rb => db/migrate/20210618155152_rename_features_to_components_at_meetings.decidim_meetings.rb +12 -0
@@ 0,0 1,12 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180305133634)

class RenameFeaturesToComponentsAtMeetings < ActiveRecord::Migration[5.1]
  def change
    rename_column :decidim_meetings_meetings, :decidim_feature_id, :decidim_component_id

    if index_name_exists?(:decidim_meetings_meetings, "index_decidim_meetings_meetings_on_decidim_feature_id")
      rename_index :decidim_meetings_meetings, "index_decidim_meetings_meetings_on_decidim_feature_id", "index_decidim_meetings_meetings_on_decidim_component_id"
    end
  end
end

A db/migrate/20210618155153_add_fields_for_registrations.decidim_meetings.rb => db/migrate/20210618155153_add_fields_for_registrations.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180326082611)

class AddFieldsForRegistrations < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_meetings_meetings, :reserved_slots, :integer, null: false, default: 0
  end
end

A db/migrate/20210618155154_add_meeting_types.decidim_meetings.rb => db/migrate/20210618155154_add_meeting_types.decidim_meetings.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180403145218)

class AddMeetingTypes < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_meetings_meetings, :private_meeting, :boolean, default: false
    add_column :decidim_meetings_meetings, :transparent, :boolean, default: true
  end
end

A db/migrate/20210618155155_add_organizer_to_meetings.decidim_meetings.rb => db/migrate/20210618155155_add_organizer_to_meetings.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180404075312)

class AddOrganizerToMeetings < ActiveRecord::Migration[5.1]
  def change
    add_reference :decidim_meetings_meetings, :organizer, index: true
  end
end

A db/migrate/20210618155156_create_meetings_minutes.decidim_meetings.rb => db/migrate/20210618155156_create_meetings_minutes.decidim_meetings.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180406080619)

class CreateMeetingsMinutes < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_meetings_minutes do |t|
      t.references :decidim_meeting, index: true
      t.jsonb :description
      t.string :video_url
      t.string :audio_url
      t.boolean :visible

      t.timestamps
    end
  end
end

A db/migrate/20210618155157_add_services_to_meetings.decidim_meetings.rb => db/migrate/20210618155157_add_services_to_meetings.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180407110934)

class AddServicesToMeetings < ActiveRecord::Migration[5.1]
  def change
    add_column :decidim_meetings_meetings, :services, :jsonb, default: []
  end
end

A db/migrate/20210618155158_create_decidim_agendas.decidim_meetings.rb => db/migrate/20210618155158_create_decidim_agendas.decidim_meetings.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180419131924)

class CreateDecidimAgendas < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_meetings_agendas do |t|
      t.jsonb :title
      t.references :decidim_meeting, null: false, index: true
      t.boolean :visible

      t.timestamps
    end
  end
end

A db/migrate/20210618155159_create_decidim_agenda_items.decidim_meetings.rb => db/migrate/20210618155159_create_decidim_agenda_items.decidim_meetings.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180419132104)

class CreateDecidimAgendaItems < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_meetings_agenda_items do |t|
      t.references :decidim_agenda, index: true
      t.integer :position
      t.references :parent, index: true
      t.integer :duration
      t.jsonb :title
      t.jsonb :description

      t.timestamps
    end
  end
end

A db/migrate/20210618155160_create_decidim_meetings_invites.decidim_meetings.rb => db/migrate/20210618155160_create_decidim_meetings_invites.decidim_meetings.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180607142020)

class CreateDecidimMeetingsInvites < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_meetings_invites do |t|
      t.references :decidim_user, null: false, index: true
      t.references :decidim_meeting, null: false, index: true
      t.datetime :sent_at
      t.datetime :accepted_at
      t.datetime :rejected_at

      t.timestamps
    end
  end
end

A db/migrate/20210618155161_add_code_to_decidim_meetings_registrations.decidim_meetings.rb => db/migrate/20210618155161_add_code_to_decidim_meetings_registrations.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180615160839)

class AddCodeToDecidimMeetingsRegistrations < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_registrations, :code, :string, index: true
  end
end

A db/migrate/20210618155162_add_validated_at_to_decidim_meetings_registrations.decidim_meetings.rb => db/migrate/20210618155162_add_validated_at_to_decidim_meetings_registrations.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180711111023)

class AddValidatedAtToDecidimMeetingsRegistrations < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_registrations, :validated_at, :datetime
  end
end

A db/migrate/20210618155163_add_registration_form_enabled_to_decidim_meetings.decidim_meetings.rb => db/migrate/20210618155163_add_registration_form_enabled_to_decidim_meetings.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180801150031)

class AddRegistrationFormEnabledToDecidimMeetings < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :registration_form_enabled, :boolean, default: false
  end
end

A db/migrate/20210618155164_add_upcoming_events_as_content_block.decidim_meetings.rb => db/migrate/20210618155164_add_upcoming_events_as_content_block.decidim_meetings.rb +28 -0
@@ 0,0 1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20180809134748)

class AddUpcomingEventsAsContentBlock < ActiveRecord::Migration[5.2]
  class Organization < ApplicationRecord
    self.table_name = :decidim_organizations
  end

  class ContentBlock < ApplicationRecord
    self.table_name = :decidim_content_blocks
  end

  def change
    Organization.find_each do |organization|
      next if ContentBlock.where(decidim_organization_id: organization.id).exists?(manifest_name: "upcoming_events")

      last_weight = ContentBlock.where(decidim_organization_id: organization.id).order("weight DESC").limit(1).pluck(:weight).last.to_i

      ContentBlock.create!(
        decidim_organization_id: organization.id,
        weight: last_weight,
        scope: :homepage,
        manifest_name: :upcoming_events,
        published_at: Time.current
      )
    end
  end
end

A db/migrate/20210618155165_add_questionnaire_to_existing_meetings.decidim_meetings.rb => db/migrate/20210618155165_add_questionnaire_to_existing_meetings.decidim_meetings.rb +16 -0
@@ 0,0 1,16 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20181107175558)

class AddQuestionnaireToExistingMeetings < ActiveRecord::Migration[5.2]
  def change
    Decidim::Meetings::Meeting.transaction do
      Decidim::Meetings::Meeting.find_each do |meeting|
        if meeting.component.present? && meeting.questionnaire.blank?
          meeting.update!(
            questionnaire: Decidim::Forms::Questionnaire.new
          )
        end
      end
    end
  end
end

A db/migrate/20210618155166_add_user_group_to_meetings_registrations.decidim_meetings.rb => db/migrate/20210618155166_add_user_group_to_meetings_registrations.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20190404132923)

class AddUserGroupToMeetingsRegistrations < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_registrations, :decidim_user_group_id, :bigint
  end
end

A db/migrate/20210618155167_index_foreign_keys_in_decidim_meetings_registrations.decidim_meetings.rb => db/migrate/20210618155167_index_foreign_keys_in_decidim_meetings_registrations.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20200320105922)

class IndexForeignKeysInDecidimMeetingsRegistrations < ActiveRecord::Migration[5.2]
  def change
    add_index :decidim_meetings_registrations, :decidim_user_group_id
  end
end

A db/migrate/20210618155168_add_author_to_meetings.decidim_meetings.rb => db/migrate/20210618155168_add_author_to_meetings.decidim_meetings.rb +31 -0
@@ 0,0 1,31 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20200526110940)

class AddAuthorToMeetings < ActiveRecord::Migration[5.2]
  class Meeting < ApplicationRecord
    self.table_name = :decidim_meetings_meetings
    include Decidim::HasComponent
  end

  def change
    add_column :decidim_meetings_meetings, :decidim_author_type, :string
    add_column :decidim_meetings_meetings, :decidim_user_group_id, :integer

    Meeting.reset_column_information
    Meeting.find_each do |meeting|
      if meeting.organizer_id.present?
        meeting.decidim_author_id = meeting.organizer_id
        meeting.decidim_author_type = "Decidim::UserBaseEntity"
      else
        meeting.decidim_author_id = meeting.organization.id
        meeting.decidim_author_type = "Decidim::Organization"
      end
      meeting.save!
    end

    remove_column :decidim_meetings_meetings, :organizer_id
    add_index :decidim_meetings_meetings,
              [:decidim_author_id, :decidim_author_type],
              name: "index_decidim_meetings_meetings_on_author"
  end
end

A db/migrate/20210618155169_create_meeting_services_table.decidim_meetings.rb => db/migrate/20210618155169_create_meeting_services_table.decidim_meetings.rb +14 -0
@@ 0,0 1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20200702123209)

class CreateMeetingServicesTable < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_meetings_services do |t|
      t.jsonb :title
      t.jsonb :description
      t.bigint :decidim_meeting_id, null: false, index: true

      t.timestamps
    end
  end
end

A db/migrate/20210618155170_move_meeting_services_to_own_model.decidim_meetings.rb => db/migrate/20210618155170_move_meeting_services_to_own_model.decidim_meetings.rb +32 -0
@@ 0,0 1,32 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20200702123210)

class MoveMeetingServicesToOwnModel < ActiveRecord::Migration[5.2]
  class Meeting < ApplicationRecord
    self.table_name = :decidim_meetings_meetings
  end

  class Service < ApplicationRecord
    self.table_name = :decidim_meetings_services
  end

  def change
    Meeting.reset_column_information
    Service.reset_column_information

    Meeting.find_each do |meeting|
      meeting["services"].each do |service|
        Service.create!(
          decidim_meeting_id: meeting.id,
          title: service["title"],
          description: service["description"]
        )
      end
    end

    remove_column :decidim_meetings_meetings, :services

    Meeting.reset_column_information
    Service.reset_column_information
  end
end

A db/migrate/20210618155171_add_commentable_counter_cache_to_meetings.decidim_meetings.rb => db/migrate/20210618155171_add_commentable_counter_cache_to_meetings.decidim_meetings.rb +10 -0
@@ 0,0 1,10 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20200827153856)

class AddCommentableCounterCacheToMeetings < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :comments_count, :integer, null: false, default: 0
    Decidim::Meetings::Meeting.reset_column_information
    Decidim::Meetings::Meeting.find_each(&:update_comments_count)
  end
end

A db/migrate/20210618155172_add_online_meeting_url.decidim_meetings.rb => db/migrate/20210618155172_add_online_meeting_url.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20201006140511)

class AddOnlineMeetingUrl < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :online_meeting_url, :string
  end
end

A db/migrate/20210618155173_add_type_of_meeting.decidim_meetings.rb => db/migrate/20210618155173_add_type_of_meeting.decidim_meetings.rb +8 -0
@@ 0,0 1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20201009124057)

class AddTypeOfMeeting < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :type_of_meeting, :string, default: "in_person"
  end
end

A db/migrate/20210618155174_fix_meetings_registration_terms.decidim_meetings.rb => db/migrate/20210618155174_fix_meetings_registration_terms.decidim_meetings.rb +30 -0
@@ 0,0 1,30 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20201016065302)

class FixMeetingsRegistrationTerms < ActiveRecord::Migration[5.2]
  def up
    reset_column_information

    PaperTrail.request(enabled: false) do
      Decidim::Meetings::Meeting.find_each do |meeting|
        next if meeting.component.nil?
        # Only user-created meetings have this problem
        next if meeting.official?

        # Since user-created meetings have no way to override the `registration_terms` field
        # and it's supposed to use the component defaults,
        # we can safely override this.
        meeting.registration_terms = meeting.component.settings.default_registration_terms
        meeting.save!
      end
    end
    reset_column_information
  end

  def down; end

  def reset_column_information
    Decidim::Meetings::Meeting.reset_column_information
    Decidim::Component.reset_column_information
  end
end

A db/migrate/20210618155175_add_registration_type_and_url_to_meetings.decidim_meetings.rb => db/migrate/20210618155175_add_registration_type_and_url_to_meetings.decidim_meetings.rb +20 -0
@@ 0,0 1,20 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20201016112641)

class AddRegistrationTypeAndUrlToMeetings < ActiveRecord::Migration[5.2]
  class Meetings < ApplicationRecord
    self.table_name = :decidim_meetings_meetings
    include Decidim::HasComponent
  end

  def change
    add_column :decidim_meetings_meetings, :registration_type, :string, null: false, default: "registration_disabled"
    add_column :decidim_meetings_meetings, :registration_url, :string

    Meetings.reset_column_information
    Meetings.find_each do |meeting|
      meeting.registration_type = "on_this_platform" if meeting.decidim_author_type == "Decidim::Organization"
      meeting.save!
    end
  end
end

A db/migrate/20210618155176_add_salt_to_decidim_meetings.decidim_meetings.rb => db/migrate/20210618155176_add_salt_to_decidim_meetings.decidim_meetings.rb +9 -0
@@ 0,0 1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20201111133246)

class AddSaltToDecidimMeetings < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :salt, :string
    # we leave old entries empty to maintain the old pad reference
  end
end

A db/migrate/20210618155177_add_followable_counter_cache_to_meetings.decidim_meetings.rb => db/migrate/20210618155177_add_followable_counter_cache_to_meetings.decidim_meetings.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_meetings (originally 20210310120731)

class AddFollowableCounterCacheToMeetings < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_meetings_meetings, :follows_count, :integer, null: false, default: 0, index: true

    reversible do |dir|
      dir.up do
        Decidim::Meetings::Meeting.reset_column_information
        Decidim::Meetings::Meeting.find_each do |record|
          record.class.reset_counters(record.id, :follows)
        end
      end
    end
  end
end

A db/migrate/20210618155178_create_decidim_proposals.decidim_proposals.rb => db/migrate/20210618155178_create_decidim_proposals.decidim_proposals.rb +17 -0
@@ 0,0 1,17 @@
# frozen_string_literal: true
# This migration comes from decidim_proposals (originally 20161212110850)

class CreateDecidimProposals < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_proposals_proposals do |t|
      t.text :title, null: false
      t.text :body, null: false
      t.references :decidim_feature, index: true, null: false
      t.references :decidim_author, index: true
      t.references :decidim_category, index: true
      t.references :decidim_scope, index: true

      t.timestamps
    end
  end