Sha256: 57f870956fad8e5ca6c460b43fb1b9d713a1cc823350a23d1850ddb4a16d3a27
Contents?: true
Size: 470 Bytes
Versions: 48
Compression:
Stored size: 470 Bytes
Contents
module Jets::Commands class Db < Jets::Commands::Base autoload :Tasks, 'jets/commands/db/tasks' desc "generate", "Creates a migration to change a db table" long_desc Help.text('db:generate') def generate(*args) require "rails/generators" require "rails/generators/active_record/migration/migration_generator" generator = ActiveRecord::Generators::MigrationGenerator.new(args) generator.create_migration_file end end end
Version data entries
48 entries across 48 versions & 2 rubygems