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.6.8 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.8 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.7 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.7 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.6 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.6 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.5 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.5 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.4 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.4 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.3 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.3 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.2 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.2 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.1 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.1 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.6.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.6.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.5.1 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.5.1 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb