Sha256: dd4edadefb898ef43578af83a9e54d499e2ccf525a8f829a0ad75c26a0ed8ae4

Contents?: true

Size: 421 Bytes

Versions: 74

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimContinuityBadgeStatuses < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_continuity_badge_statuses do |t|
      t.integer :current_streak, :integer, null: false, default: 0
      t.date :last_session_at, null: false
      t.references :subject, null: false, polymorphic: true, index: { name: "decidim_continuity_statuses_subject" }
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
decidim-core-0.20.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.20.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.19.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.18.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.19.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.17.2 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.18.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.17.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.16.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.17.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.16.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.15.2 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.15.1 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb
decidim-core-0.15.0 db/migrate/20181010044613_create_decidim_continuity_badge_statuses.rb