Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Platoniq/decidim-somconnexio into f…
Browse files Browse the repository at this point in the history
…eat/47
  • Loading branch information
fblupi committed Oct 6, 2023
2 parents bfaa969 + dce35d1 commit 64bdb01
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true
# This migration comes from decidim_templates (originally 20200518093819)

class CreateDecidimTemplates < ActiveRecord::Migration[5.2]
def change
create_table :decidim_templates_templates do |t|
t.integer :decidim_organization_id, null: false, index: { name: "index_decidim_templates_organization" }
t.references :templatable, polymorphic: true, index: { name: "index_decidim_templates_templatable" }
t.jsonb :name, null: false
t.jsonb :description
t.timestamps
end
end
end
14 changes: 13 additions & 1 deletion 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: 2023_10_05_094634) do
ActiveRecord::Schema.define(version: 2023_10_06_120421) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
Expand Down Expand Up @@ -1637,6 +1637,18 @@
t.index ["reset_password_token"], name: "index_decidim_system_admins_on_reset_password_token", unique: true
end

create_table "decidim_templates_templates", force: :cascade do |t|
t.integer "decidim_organization_id", null: false
t.string "templatable_type"
t.bigint "templatable_id"
t.jsonb "name", null: false
t.jsonb "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["decidim_organization_id"], name: "index_decidim_templates_organization"
t.index ["templatable_type", "templatable_id"], name: "index_decidim_templates_templatable"
end

create_table "decidim_term_customizer_constraints", force: :cascade do |t|
t.bigint "decidim_organization_id", null: false
t.string "subject_type"
Expand Down

0 comments on commit 64bdb01

Please sign in to comment.