diff --git a/db/migrate/20241105160441_add_registered_only_to_decidim_share_tokens.decidim.rb b/db/migrate/20241105160441_add_registered_only_to_decidim_share_tokens.decidim.rb new file mode 100644 index 0000000..27ee7bd --- /dev/null +++ b/db/migrate/20241105160441_add_registered_only_to_decidim_share_tokens.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20240717093514) + +class AddRegisteredOnlyToDecidimShareTokens < ActiveRecord::Migration[6.1] + def change + add_column :decidim_share_tokens, :registered_only, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index b64f96d..212feea 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2024_09_17_075030) do +ActiveRecord::Schema.define(version: 2024_11_05_160441) do # These are extensions that must be enabled in order to support this database enable_extension "fuzzystrmatch" @@ -1772,6 +1772,7 @@ t.datetime "created_at" t.datetime "last_used_at" t.datetime "expires_at" + t.boolean "registered_only" t.index ["decidim_organization_id"], name: "index_decidim_share_tokens_on_decidim_organization_id" t.index ["decidim_user_id"], name: "index_decidim_share_tokens_on_decidim_user_id" t.index ["token_for_type", "token_for_id"], name: "decidim_share_tokens_token_for"