Sha256: a4b3802bafb0ed87b9704e06e0638ba0ed31bbd15fb14481e62242802d1f75c6
Contents?: true
Size: 365 Bytes
Versions: 88
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true class AddReferenceToProjects < ActiveRecord::Migration[5.0] class Project < ApplicationRecord self.table_name = :decidim_budgets_projects end def change add_column :decidim_budgets_projects, :reference, :string Project.find_each(&:save) change_column_null :decidim_budgets_projects, :reference, false end end
Version data entries
88 entries across 88 versions & 1 rubygems