Sha256: 77427b8ae9b51d6605c016f23637ecdc54c123491001e06f441a393d1d48b14c

Contents?: true

Size: 427 Bytes

Versions: 49

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

class AddNotificationTypesToUsers < ActiveRecord::Migration[5.2]
  def change
    add_column :decidim_users, :notification_types, :string, default: "all"
    # rubocop:disable Rails/SkipsModelValidations
    Decidim::UserBaseEntity.update_all(notification_types: "all")
    # rubocop:enable Rails/SkipsModelValidations

    change_column_null :decidim_users, :notification_types, false
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
decidim-core-0.27.3 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.7 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.5 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.27.2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.27.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.4 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.27.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.3 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.27.0.rc2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.27.0.rc1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.0.rc2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.26.0.rc1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.0.rc4 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.0.rc3 db/migrate/20181214101250_add_notification_types_to_users.rb