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.4.11 lib/jets/commands/db.rb
jets-1.4.10 lib/jets/commands/db.rb
jets-1.4.9 lib/jets/commands/db.rb
jets-1.4.8 lib/jets/commands/db.rb
jets-1.4.7 lib/jets/commands/db.rb
jets-1.4.6 lib/jets/commands/db.rb
jets-1.4.5 lib/jets/commands/db.rb
jets-1.4.4 lib/jets/commands/db.rb
jets-1.4.3 lib/jets/commands/db.rb
jets-1.4.2 lib/jets/commands/db.rb
jets-1.4.1 lib/jets/commands/db.rb
jets-1.4.0 lib/jets/commands/db.rb
jets-1.3.9 lib/jets/commands/db.rb
jets-1.3.8 lib/jets/commands/db.rb
jets-1.3.7 lib/jets/commands/db.rb
jets-1.3.6 lib/jets/commands/db.rb
jets-1.3.5 lib/jets/commands/db.rb
jets-1.3.4 lib/jets/commands/db.rb
jets-1.3.3 lib/jets/commands/db.rb
jets-1.3.2 lib/jets/commands/db.rb