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

Version Path
jets-1.9.7 lib/jets/commands/db.rb
jets-1.9.6 lib/jets/commands/db.rb
jets-1.9.5 lib/jets/commands/db.rb
jets-1.9.4 lib/jets/commands/db.rb
jets-1.9.3 lib/jets/commands/db.rb
jets-1.9.2 lib/jets/commands/db.rb
jets-1.9.1 lib/jets/commands/db.rb
jets-1.9.0 lib/jets/commands/db.rb
jets-1.8.14 lib/jets/commands/db.rb
jets-1.8.13 lib/jets/commands/db.rb
jets-1.8.12 lib/jets/commands/db.rb
jets-1.8.11 lib/jets/commands/db.rb
jets-1.8.10 lib/jets/commands/db.rb
jets-1.8.9 lib/jets/commands/db.rb
jets-1.8.8 lib/jets/commands/db.rb
jets-1.8.7 lib/jets/commands/db.rb
jets-1.8.6 lib/jets/commands/db.rb
jets-1.8.5 lib/jets/commands/db.rb
jets-1.8.4 lib/jets/commands/db.rb
jets-1.8.3 lib/jets/commands/db.rb