Sha256: 02b767faf927e9505d073b1ac85949b73106efc42af8e37b9be8cc966c2afb09

Contents?: true

Size: 241 Bytes

Versions: 4

Compression:

Stored size: 241 Bytes

Contents

# -*- encoding : utf-8 -*-

class RenameStatsToAdmin < Cardio::Migration::Transform
  def up
    return if Card::Codename.exist?(:admin) || !Card::Codename.exist?(:stats)

    Card[:stats].update! name: "*admin", codename: "admin"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
card-1.108.1 mod/core/data/transform/20160811115836_rename_stats_to_admin.rb
card-1.108.0 mod/core/data/transform/20160811115836_rename_stats_to_admin.rb
card-1.107.0 mod/core/data/transform/20160811115836_rename_stats_to_admin.rb
card-1.106.0 mod/core/data/transform/20160811115836_rename_stats_to_admin.rb