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

Version Path
jets-1.3.1 lib/jets/commands/db.rb
jets-1.3.0 lib/jets/commands/db.rb
jets-1.2.1 lib/jets/commands/db.rb
jets-1.2.0 lib/jets/commands/db.rb
jets-1.1.5 lib/jets/commands/db.rb
jets-1.1.4 lib/jets/commands/db.rb
jets-1.1.3 lib/jets/commands/db.rb
jets-1.1.2 lib/jets/commands/db.rb
jets-1.1.1 lib/jets/commands/db.rb
jets-1.1.0 lib/jets/commands/db.rb
jets-1.0.18 lib/jets/commands/db.rb
jets-1.0.17 lib/jets/commands/db.rb
jets-1.0.16 lib/jets/commands/db.rb
jets-1.0.15 lib/jets/commands/db.rb
jets-1.0.13 lib/jets/commands/db.rb
jets-1.0.12 lib/jets/commands/db.rb
jets-1.0.11 lib/jets/commands/db.rb
jets-1.0.10 lib/jets/commands/db.rb
jets-1.0.9 lib/jets/commands/db.rb
jets-1.0.8 lib/jets/commands/db.rb