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.6.5 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.5 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.6.4 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.4 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.6.3 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.3 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.6.2 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.2 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.6.1 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.1 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.6.0 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.6.0 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.5.1 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.5.1 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.5.0 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.5.0 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.4.4 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-0.4.4 decidim-meetings/db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.4.3 db/migrate/20170215132546_add_reference_to_meetings.rb
decidim-meetings-0.4.2 db/migrate/20170215132546_add_reference_to_meetings.rb