Sha256: 96b27a8be19b3358be7a669b392187cf9d52596fd0a811859b937a2a4bbf1da6

Contents?: true

Size: 257 Bytes

Versions: 10

Compression:

Stored size: 257 Bytes

Contents

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

10 entries across 10 versions & 2 rubygems

Version Path
decidim-results-0.2.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.2.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.1.0 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.1.0 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.0.8.1 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.0.8.1 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.0.7 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.0.7 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb
decidim-results-0.0.6 db/migrate/20170215132624_add_reference_to_results.rb
decidim-0.0.6 decidim-results/db/migrate/20170215132624_add_reference_to_results.rb