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_current, assume_migrated_upto_version, data_path, #data_path, #down, #exec_migration, find_unused_name, migration_paths, schema_mode, schema_suffix, type

Methods included from Card::Model::SaveHelper

#create_card, #create_card!, #delete_card, #delete_code_card, #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

#contentedly(&block) ⇒ Object



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

def contentedly &block
  Schema.mode :deck, &block
end