Class: Card::Migration::DeckStructure

Inherits:
Card::Migration show all
Defined in:
lib/card/migration/deck_structure.rb

Overview

Inherit from this migration class to make database table changes in your deck

Instance Method Summary collapse

Methods inherited from Card::Migration

assume_migrated_upto_version, #data_path, data_path, #down, #exec_migration, find_unused_name, #import_cards, #import_json, #merge_cards, #merge_pristine_cards, #migration_paths, migration_paths, #read_json, schema, schema_mode, #schema_mode, schema_suffix, type, #update_machine_output

Methods included from Card::Model::SaveHelper

#add_coderule_item, #add_script, #add_style, #create_card, #create_card!, #create_or_update_card, #create_or_update_card!, #delete_card, #delete_code_card, #ensure_card, #ensure_card!, #ensure_code_card, #ensure_trait, #ensure_trait_rule, #extract_cardtype_from_method_name, #method_missing, #respond_to_missing?, #update_card, #update_card!, #with_user

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Card::Model::SaveHelper

Instance Method Details

#contentedlyObject



12
13
14
15
16
# File 'lib/card/migration/deck_structure.rb', line 12

def contentedly
  Cardio.schema_mode :deck do
    yield
  end
end