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

Version Path
decidim-core-0.2.0 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.1.0 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.8.1 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.7 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.6 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.5 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.3 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.2 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.1 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.1.alpha9 db/migrate/20161020080756_add_position_to_steps.rb
decidim-core-0.0.1.alpha8 db/migrate/20161020080756_add_position_to_steps.rb