Sha256: bdc417cbdfea2cff4c7f34f1d0f7d098ff021f919d4989161cd4ca92d2a7c087

Contents?: true

Size: 302 Bytes

Versions: 48

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

class AddReferenceToProposals < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_proposals_proposals, :reference, :string
    Decidim::Proposals::Proposal.find_each(&:save)
    change_column_null :decidim_proposals_proposals, :reference, false
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
decidim-proposals-0.8.4 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.8.3 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.8.2 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.8.1 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.8.0 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.7.4 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.7.3 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.7.2 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.7.1 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.7.0 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.6.8 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.6.8 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.6.7 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.6.7 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.6.6 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.6.6 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.6.5 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.6.5 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.6.4 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.6.4 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb