Sha256: 2707eac32139179a1be8e20c543bf191b2a7bd8eb089a750837741f67a1c93d7

Contents?: true

Size: 573 Bytes

Versions: 58

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimShareTokens < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_share_tokens do |t|
      t.references :decidim_organization, null: false, index: true
      t.references :decidim_user, null: false, index: true
      t.references :token_for, polymorphic: true, null: false, index: { name: "decidim_share_tokens_token_for" }
      t.string :token, null: false
      t.integer :times_used, default: 0
      t.datetime :created_at
      t.datetime :last_used_at
      t.datetime :expires_at
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-core-0.29.1 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.4 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.27.9 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.29.0 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.3 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.27.8 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.29.0.rc4 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.29.0.rc3 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.29.0.rc2 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.29.0.rc1 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.2 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.27.7 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.1 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.27.6 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.26.10 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.26.9 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.0 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.27.5 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.0.rc5 db/migrate/20200702073419_create_decidim_share_tokens.rb
decidim-core-0.28.0.rc4 db/migrate/20200702073419_create_decidim_share_tokens.rb