Sha256: eb69aae0f608120997feb2d8aeb392c72a7d52cea3f839cff99031ee279e39ef
Contents?: true
Size: 443 Bytes
Versions: 134
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true class AddActiveFlagToStep < ActiveRecord::Migration[5.0] def change add_column :decidim_participatory_process_steps, :active, :boolean, default: false add_index :decidim_participatory_process_steps, [:decidim_participatory_process_id, :active], unique: true, where: "active = 't'", name: "unique_index_to_avoid_duplicate_active_steps" end end
Version data entries
134 entries across 134 versions & 3 rubygems