Sha256: 433a3416846c9c73e88a2bba2cd300efa2307f1f3906b41c933afe7b2dbe6cfe

Contents?: true

Size: 488 Bytes

Versions: 15

Compression:

Stored size: 488 Bytes

Contents

require "generators/active_snapshot/migration_generator"

module ActiveSnapshot
  class InstallGenerator < MigrationGenerator

    source_root File.expand_path("templates", __dir__)

    desc "Generates a migration to add a the `snapshots` and `snapshot_items` tables"

    def create_migration_file
      add_migration(
        MIGRATION_NAME,
        { 
          table_options: table_options,
        }
      )
    end

    MIGRATION_NAME = "create_snapshots_tables".freeze

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
active_snapshot-1.0.0 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.5.2 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.5.1 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.5.0 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.4.0 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.3.2 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.3.1 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.3.0 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.2.4 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.2.3 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.2.2 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.2.1 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.2.0 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.1.1 lib/generators/active_snapshot/install/install_generator.rb
active_snapshot-0.1.0 lib/generators/active_snapshot/install/install_generator.rb