Sha256: 1e9841d5e3dda6a7215733d4a663c2fdafcd54cfd6125c9f9853aae4b218810b
Contents?: true
Size: 898 Bytes
Versions: 142
Compression:
Stored size: 898 Bytes
Contents
module Jets::Commands class Dynamodb < Jets::Commands::Base autoload :Migrator, 'jets/commands/dynamodb/migrator' autoload :Migrate, 'jets/commands/dynamodb/migrate' desc "migrate [path]", "Runs migrations" long_desc Help.text('dynamodb:migrate') def migrate(path) Migrator.new(path, options).run end desc "generate [name]", "Creates a migration for a DynamoDB table" long_desc Help.text('dynamodb:generate') option :partition_key, default: "id:string:hash", desc: "table's partition key" option :sort_key, default: nil, desc: "table's sort key" option :table_name, desc: "override the the conventional table name" option :table_action, desc: "create_table or update_table. Defaults to convention based on the name of the migration." def generate(name) Dynomite::Migration::Generator.new(name, options).generate end end end
Version data entries
142 entries across 142 versions & 2 rubygems