Class: Cardio::Migration::DeckStructure

Inherits:
Cardio::Migration show all
Defined in:
lib/cardio/migration/deck_structure.rb

Overview

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

Constant Summary

Constants included from Card::Model::SaveHelper::SaveHelperHelper

Card::Model::SaveHelper::SaveHelperHelper::CARDTYPE_METHOD_REGEXP

Instance Method Summary collapse

Methods inherited from Cardio::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_script, #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, #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::SaveHelperHelper

Instance Method Details

#contentedlyObject



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

def contentedly
  Cardio.schema_mode :deck do
    yield
  end
end