Sha256: c4da955d86fff41f7b6dea005b19d53eb59751540129803be5f87e103dbfa8a8
Contents?: true
Size: 687 Bytes
Versions: 79
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true class CreateDecidimMetrics < ActiveRecord::Migration[5.2] def change create_table :decidim_metrics do |t| t.date :day, null: false, index: true t.string :metric_type, null: false, index: true t.integer :cumulative, null: false t.integer :quantity, null: false t.references :decidim_organization, null: false, index: true t.references :participatory_space, polymorphic: true, index: { name: "index_metric_on_participatory_space_id_and_type" } t.references :related_object, polymorphic: true, index: { name: "index_metric_on_related_object_id_and_type" } t.references :decidim_category end end end
Version data entries
79 entries across 79 versions & 1 rubygems