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.4.0 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.4.0 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.3.2 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.3.2 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.3.1 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.3.1 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-proposals-0.3.0 db/migrate/20170215132030_add_reference_to_proposals.rb
decidim-0.3.0 decidim-proposals/db/migrate/20170215132030_add_reference_to_proposals.rb