Sha256: 0ab94bfd66b8b68678c01d98766d0e5a7ca53ee4fd3963533b6251bef0b9b45f
Contents?: true
Size: 458 Bytes
Versions: 94
Compression:
Stored size: 458 Bytes
Contents
require "rails/generators" require "rails/generators/active_record/migration/migration_generator" 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) generator = ActiveRecord::Generators::MigrationGenerator.new(args) generator.create_migration_file end end end
Version data entries
94 entries across 94 versions & 1 rubygems