Sha256: 5e582185805e105dcc550a18816dedee80e997025bbd18487073f3577937aa53

Contents?: true

Size: 848 Bytes

Versions: 5

Compression:

Stored size: 848 Bytes

Contents

Description:
    Generates a configuration class for database snapshots.

Example:
    rails generate snapshot NAME [options]

    This will create:
        - A new snapshot configuration file at db/snapshots/YYYYMMDDHHMMSS_NAME.rb

Options:
    --exclude_tables=one two three
        This option allows you to specify tables that should be excluded from the snapshot.
        You can list multiple tables by separating them with a space.

        Example:
            rails generate snapshot MySnapshot --exclude_tables=users sessions logs

        This will generate a configuration file that excludes the 'users', 'sessions', and 'logs' tables.

More Information:
    The generated configuration file is a Ruby class that extends ActiveRecord::DbSnapshot.
    You can edit this class to further customize the behavior of your database snapshot.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-dbsnapshot-0.1.4 lib/generators/snapshot/USAGE
activerecord-dbsnapshot-0.1.3 lib/generators/snapshot/USAGE
activerecord-dbsnapshot-0.1.2 lib/generators/snapshot/USAGE
activerecord-dbsnapshot-0.1.1 lib/generators/snapshot/USAGE
activerecord-dbsnapshot-0.1.0 lib/generators/snapshot/USAGE