Sha256: 62d2117fed33177ac1258f6599a754bba2f4f313d2cc533e00deaae42bb353f3

Contents?: true

Size: 508 Bytes

Versions: 37

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

class AddCommentsAvailabilityColumnsToMeetingsTable < ActiveRecord::Migration[6.0]
  def change
    add_column :decidim_meetings_meetings, :comments_enabled, :boolean, default: true
    add_column :decidim_meetings_meetings, :comments_start_time, :datetime
    add_column :decidim_meetings_meetings, :comments_end_time, :datetime
    reversible do |dir|
      dir.up do
        execute "UPDATE decidim_meetings_meetings set comments_enabled = true"
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.4 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.27.9 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.29.0 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.3 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.27.8 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.29.0.rc4 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.29.0.rc3 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.29.0.rc2 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.29.0.rc1 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.2 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.27.7 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.1 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.27.6 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.26.10 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.26.9 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.0 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.27.5 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.0.rc5 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb
decidim-meetings-0.28.0.rc4 db/migrate/20210519133705_add_comments_availability_columns_to_meetings_table.rb