Sha256: 938f573f6258a4b360522efb7f6d75b3bfc5692ade9a71dd2993bbb56ac57ac7

Contents?: true

Size: 288 Bytes

Versions: 38

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

class AddReferenceToResults < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_results_results, :reference, :string
    Decidim::Results::Result.find_each(&:save)
    change_column_null :decidim_results_results, :reference, false
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
decidim-results-0.5.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.5.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.4.4 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.4.4 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.4.3 db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.4.2 db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.4.1 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.4.3 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.4.2 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.4.1 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.4.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.4.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.3.2 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.3.2 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.3.1 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.3.1 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.3.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.3.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb