Sha256: 076848fc9b376d68accd74137fd8c9229b06b43de905cb27e03ae8dff6b60e8e

Contents?: true

Size: 287 Bytes

Versions: 44

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

class SetPositionToQuestionMatrixRows < ActiveRecord::Migration[5.2]
  def up
    execute "UPDATE decidim_forms_question_matrix_rows SET position = id"
  end

  def down
    execute "UPDATE decidim_forms_question_matrix_rows SET position = NULL"
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-forms-0.25.0.rc4 db/migrate/20210616153042_set_position_to_question_matrix_rows.rb
decidim-forms-0.25.0.rc3 db/migrate/20210616153042_set_position_to_question_matrix_rows.rb
decidim-forms-0.25.0.rc2 db/migrate/20210616153042_set_position_to_question_matrix_rows.rb
decidim-forms-0.25.0.rc1 db/migrate/20210616153042_set_position_to_question_matrix_rows.rb