Sha256: 16a81f1768a35ff41f8b0e3497f5b3258ee4201fa63b0fc5abeffad66f547077

Contents?: true

Size: 730 Bytes

Versions: 17

Compression:

Stored size: 730 Bytes

Contents

Description:
    Generates a migration of database content.

    To import database content from a json file move your json file to db/migrate_cards/data
    and choose as migration name import_<filename>.

Example:
    <%= banner_command %> generate card:migration better_commented_search_cards

    This will create:

        db/migrate_cards/(migration_number)_better_commented_search_cards.rb

    ...which is set up to use methods in lib/card/migration.rb


    <%= banner_command %> generate card:migration import_better_search_cards

    This will create:

        db/migrate_cards/(migration_number)_import_better_search_cards.rb

    ...which is set up to import data from db/migrate_cards/data/better_search_cards.json

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
card-1.105.6 lib/generators/migration/USAGE
card-1.105.5 lib/generators/migration/USAGE
card-1.105.4 lib/generators/migration/USAGE
card-1.105.3 lib/generators/migration/USAGE
card-1.105.2.pre1 lib/generators/migration/USAGE
card-1.105.2 lib/generators/migration/USAGE
card-1.105.1 lib/generators/migration/USAGE
card-1.105.0 lib/generators/migration/USAGE
card-1.104.2 lib/generators/migration/USAGE
card-1.104.1 lib/generators/migration/USAGE
card-1.104.0 lib/generators/migration/USAGE
card-1.103.4 lib/generators/migration/USAGE
card-1.103.3 lib/generators/migration/USAGE
card-1.103.2 lib/generators/migration/USAGE
card-1.103.1 lib/generators/migration/USAGE
card-1.103.0 lib/generators/migration/USAGE
card-1.102.0 lib/generators/migration/USAGE