Sha256: 32a949d49643ccaf70b79a4ec2e77b79addda6afe393cbf8503661949c7f766b

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

class CompoundNamesDoNotStoreNameAndKey < Cardio::Migration::Schema
  def change
    change_column_null :cards, :name, true
    change_column_null :cards, :key, true
    Card.where.not(left_id: nil).in_batches.update_all name: nil, key: nil
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
card-1.108.1 mod/core/data/schema/20200718051236_compound_names_do_not_store_name_and_key.rb
card-1.108.0 mod/core/data/schema/20200718051236_compound_names_do_not_store_name_and_key.rb
card-1.107.0 mod/core/data/schema/20200718051236_compound_names_do_not_store_name_and_key.rb
card-1.106.0 mod/core/data/schema/20200718051236_compound_names_do_not_store_name_and_key.rb