Sha256: 8f9f25590141ce38631e8645bd8a09816c3c3e9857d7da45a2d593df7258c38b

Contents?: true

Size: 292 Bytes

Versions: 54

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

class AddReferenceToProjects < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_budgets_projects, :reference, :string
    Decidim::Budgets::Project.find_each(&:save)
    change_column_null :decidim_budgets_projects, :reference, false
  end
end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
decidim-budgets-0.10.1 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.10.0 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.9.3 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.9.2 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.9.1 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.9.0 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.8.4 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.8.3 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.8.2 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.8.1 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.8.0 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.7.4 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.7.3 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.7.2 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.7.1 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.7.0 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.6.8 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-0.6.8 decidim-budgets/db/migrate/20170215132708_add_reference_to_projects.rb
decidim-budgets-0.6.7 db/migrate/20170215132708_add_reference_to_projects.rb
decidim-0.6.7 decidim-budgets/db/migrate/20170215132708_add_reference_to_projects.rb