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.25.0.rc2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.25.0.rc1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.3 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.6 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.5 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.0.rc2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.4 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.24.0.rc1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.3 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.2 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.1.rc1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.23.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.22.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.21.0 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.20.1 db/migrate/20181214101250_add_notification_types_to_users.rb
decidim-core-0.20.0 db/migrate/20181214101250_add_notification_types_to_users.rb