Sha256: 67fa391d144e1d67bc3716261f91d750015cbc2a18223c17043546b9b8b5ccf1
Contents?: true
Size: 453 Bytes
Versions: 11
Compression:
Stored size: 453 Bytes
Contents
class AddPositionToSteps < ActiveRecord::Migration[5.0] def change add_column :decidim_participatory_process_steps, :position, :integer, null: false add_index :decidim_participatory_process_steps, :position, order: { position: :asc }, name: "index_order_by_position_for_steps" add_index :decidim_participatory_process_steps, [:decidim_participatory_process_id, :position], unique: true, name: "index_unique_position_for_process" end end
Version data entries
11 entries across 11 versions & 1 rubygems