Sha256: 7a7b272d10bef487f716445a54498d3f12464007aa939b2b0cd36a422ad51bfa

Contents?: true

Size: 545 Bytes

Versions: 8

Compression:

Stored size: 545 Bytes

Contents

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

class InputType < Cardio::Migration::Core
  def up
    update_card! :input, name: "*input type", codename: "input_type"
    update_card! :options, name: "*content options", codename: "content_options"
    update_card! :options_label, name: "*content option view",
                                 codename: "content_option_view"

    Card::Cache.reset_all

    Card.ensure name: %i[all content_option_view], content: "smart_label"
    Card.search right: :content_option_view, left: { not: :all }, &:delete!
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.105.6 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.5 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.4 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.3 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.2.pre1 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.2 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.1 db/migrate_core_cards/20190902193208_input_type.rb
card-1.105.0 db/migrate_core_cards/20190902193208_input_type.rb