Sha256: c196b93bc5093b35ceb7e7d2dfb24c7be49a0b237f93c96834ea5761ded39717

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

class CreateSettings < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_action_delegator_settings do |t|
      t.datetime :expires_at, null: false
      t.integer :max_grants, null: false, default: 0, limit: 2 # Maps to PostgreSQL smallint
      t.belongs_to :decidim_consultation, null: false, foreign_key: true, index: { name: "index_decidim_settings_on_decidim_consultation_id" }

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.7.2 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.7.1 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.7.0 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.6.0 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.5.0 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.4.1 db/migrate/20200824113801_create_settings.rb
decidim-action_delegator-0.4 db/migrate/20200824113801_create_settings.rb