Sha256: 05acfbb3eeb74963ede51626edf34ef2dcc6e23772556d127ac3289794c9afba

Contents?: true

Size: 293 Bytes

Versions: 90

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true

class AddReferenceToDebates < ActiveRecord::Migration[5.1]
  class Debate < ApplicationRecord
    self.table_name = :decidim_debates_debates
  end

  def change
    add_column :decidim_debates_debates, :reference, :string
    Debate.find_each(&:touch)
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-debates-0.13.0 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.12.1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.13.0.pre1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.12.0 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.11.2 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.12.0.pre db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.11.1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.11.0.pre1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.10.1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.10.0 db/migrate/20180119150434_add_reference_to_debates.rb