Skip to content

Commit

Permalink
Remove remaining elements of the homepage interactive map module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 27, 2024
1 parent 73e4cbf commit 7ab8c1f
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 6 deletions.
11 changes: 11 additions & 0 deletions db/migrate/20240327215408_revert_homepage_interactive_map.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class RevertHomepageInteractiveMap < ActiveRecord::Migration[6.1]
require_relative '20210429220804_add_geo_json_to_scopes.decidim_homepage_interactive_map.rb'
require_relative '20210429220805_add_geolocation_to_participatory_processes.decidim_homepage_interactive_map.rb'
require_relative '20210429220806_add_display_linked_assemblies_to_participatory_processes.decidim_homepage_interactive_map.rb'

def change
revert AddDisplayLinkedAssembliesToParticipatoryProcesses
revert AddGeolocationToParticipatoryProcesses
revert AddGeoJsonToScopes
end
end
54 changes: 48 additions & 6 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_02_02_224501) do
ActiveRecord::Schema.define(version: 2024_03_27_215408) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
enable_extension "pg_trgm"
enable_extension "plpgsql"
enable_extension "postgis"

create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
Expand Down Expand Up @@ -806,6 +807,40 @@
t.index ["user_id"], name: "index_decidim_gamification_badge_scores_on_user_id"
end

create_table "decidim_geo_configs", force: :cascade do |t|
t.float "longitude"
t.float "latitude"
t.integer "zoom"
t.string "tile"
t.boolean "only_processes", default: false, null: false
t.boolean "only_assemblies", default: false, null: false
end

# Could not dump table "decidim_geo_shapefile_datas" because of following StandardError
# Unknown type 'geometry(MultiPolygon)' for column 'geom'

create_table "decidim_geo_shapefiles", force: :cascade do |t|
t.string "title", null: false
t.string "description"
t.bigint "decidim_scope_types_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.bigint "decidim_organization_id"
t.index ["decidim_organization_id"], name: "index_decidim_geo_shapefiles_on_decidim_organization_id"
t.index ["decidim_scope_types_id"], name: "index_decidim_geo_shapefiles_on_decidim_scope_types_id"
end

create_table "decidim_geo_space_locations", force: :cascade do |t|
t.bigint "decidim_geo_space_id"
t.string "decidim_geo_space_type"
t.string "address"
t.float "latitude"
t.float "longitude"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["decidim_geo_space_type", "decidim_geo_space_id"], name: "decidim_geo_space_poly_idx", unique: true
end

create_table "decidim_hashtags", force: :cascade do |t|
t.bigint "decidim_organization_id"
t.string "name"
Expand Down Expand Up @@ -1380,10 +1415,6 @@
t.boolean "show_metrics", default: true
t.integer "weight", default: 1, null: false
t.integer "follows_count", default: 0, null: false
t.string "address"
t.float "latitude"
t.float "longitude"
t.boolean "display_linked_assemblies", default: false
t.bigint "decidim_participatory_process_type_id"
t.index ["decidim_area_id"], name: "index_decidim_participatory_processes_on_decidim_area_id"
t.index ["decidim_organization_id", "slug"], name: "index_unique_process_slug_and_organization", unique: true
Expand Down Expand Up @@ -1608,7 +1639,6 @@
t.integer "parent_id"
t.string "code", null: false
t.integer "part_of", default: [], null: false, array: true
t.jsonb "geojson"
t.index ["decidim_organization_id", "code"], name: "index_decidim_scopes_on_decidim_organization_id_and_code", unique: true
t.index ["decidim_organization_id"], name: "index_decidim_scopes_on_decidim_organization_id"
t.index ["parent_id"], name: "index_decidim_scopes_on_parent_id"
Expand Down Expand Up @@ -2003,6 +2033,14 @@
t.index ["redirect_rule_id"], name: "index_request_environment_rules_on_redirect_rule_id"
end

create_table "spatial_ref_sys", primary_key: "srid", id: :integer, default: nil, force: :cascade do |t|
t.string "auth_name", limit: 256
t.integer "auth_srid"
t.string "srtext", limit: 2048
t.string "proj4text", limit: 2048
t.check_constraint "(srid > 0) AND (srid <= 998999)", name: "spatial_ref_sys_srid_check"
end

create_table "versions", force: :cascade do |t|
t.string "item_type", null: false
t.integer "item_id", null: false
Expand Down Expand Up @@ -2034,6 +2072,10 @@
add_foreign_key "decidim_debates_debates", "decidim_scopes"
add_foreign_key "decidim_editor_images", "decidim_organizations"
add_foreign_key "decidim_editor_images", "decidim_users", column: "decidim_author_id"
add_foreign_key "decidim_geo_shapefile_datas", "decidim_geo_shapefiles", column: "decidim_geo_shapefiles_id"
add_foreign_key "decidim_geo_shapefile_datas", "decidim_scopes", column: "decidim_scopes_id"
add_foreign_key "decidim_geo_shapefiles", "decidim_organizations"
add_foreign_key "decidim_geo_shapefiles", "decidim_scope_types", column: "decidim_scope_types_id"
add_foreign_key "decidim_identities", "decidim_organizations"
add_foreign_key "decidim_navigation_maps_blueprint_areas", "decidim_navigation_maps_blueprints"
add_foreign_key "decidim_navigation_maps_blueprints", "decidim_content_blocks"
Expand Down

0 comments on commit 7ab8c1f

Please sign in to comment.