Sha256: b785ba8bb5c3aacdb7b3887cbe0a3aba8c28b6bea01a86a5e5d910268913fff3

Contents?: true

Size: 295 Bytes

Versions: 32

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

class AddReferenceToMeetings < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_meetings_meetings, :reference, :string
    Decidim::Meetings::Meeting.find_each(&:save)
    change_column_null :decidim_meetings_meetings, :reference, false
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
decidim-meetings-0.4.1 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.4.3 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.4.2 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.4.1 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.4.0 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.4.0 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.3.2 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.3.2 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.3.1 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.3.1 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.3.0 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.3.0 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb