Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove decidim types references #496

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveDecidimTypeIdInParticipatoryProcesses < ActiveRecord::Migration[6.1]
def change
remove_column :decidim_participatory_processes, :decidim_type_id
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241008075539_remove_decidim_types.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveDecidimTypes < ActiveRecord::Migration[6.1]
def change
drop_table :decidim_types
end
end
12 changes: 1 addition & 11 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_09_25_142241) do
ActiveRecord::Schema.define(version: 2024_10_08_075539) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
Expand Down Expand Up @@ -1123,7 +1123,6 @@
t.boolean "scopes_enabled", default: true, null: false
t.date "start_date"
t.string "email"
t.integer "decidim_type_id"
t.string "reference"
t.boolean "private_space", default: false
t.bigint "decidim_area_id"
Expand Down Expand Up @@ -1569,14 +1568,6 @@
t.index ["translation_set_id"], name: "decidim_term_customizer_translation_translation_set"
end

create_table "decidim_types", force: :cascade do |t|
t.jsonb "name"
t.bigint "decidim_organization_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["decidim_organization_id"], name: "index_decidim_types_on_decidim_organization_id"
end

create_table "decidim_user_blocks", force: :cascade do |t|
t.bigint "decidim_user_id"
t.integer "blocking_user_id"
Expand Down Expand Up @@ -1831,7 +1822,6 @@
add_foreign_key "decidim_term_customizer_constraints", "decidim_organizations"
add_foreign_key "decidim_term_customizer_constraints", "decidim_term_customizer_translation_sets", column: "translation_set_id"
add_foreign_key "decidim_term_customizer_translations", "decidim_term_customizer_translation_sets", column: "translation_set_id"
add_foreign_key "decidim_types", "decidim_organizations"
add_foreign_key "decidim_user_blocks", "decidim_users"
add_foreign_key "decidim_user_blocks", "decidim_users", column: "blocking_user_id"
add_foreign_key "decidim_user_moderations", "decidim_users"
Expand Down
Loading