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.25.0.rc4 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.25.0.rc3 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.25.0.rc2 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.25.0.rc1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.3 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.6 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.2 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.5 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.0 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.0.rc2 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.4 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.24.0.rc1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.3 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.2 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.1.rc1 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.23.0 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.22.0 db/migrate/20180119150434_add_reference_to_debates.rb
decidim-debates-0.21.0 db/migrate/20180119150434_add_reference_to_debates.rb