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-0.6.4 lib/jets/commands/db.rb
jets-0.6.3 lib/jets/commands/db.rb
jets-0.6.2 lib/jets/commands/db.rb
jets-0.6.1 lib/jets/commands/db.rb
jets-0.6.0 lib/jets/commands/db.rb
jets-0.5.8 lib/jets/commands/db.rb
jets-0.5.7 lib/jets/commands/db.rb
jets-0.5.6 lib/jets/commands/db.rb
jets-0.5.5 lib/jets/commands/db.rb
jets-0.5.4 lib/jets/commands/db.rb
jets-0.5.3 lib/jets/commands/db.rb
jets-0.5.2 lib/jets/commands/db.rb
jets-0.5.1 lib/jets/commands/db.rb
jets-0.5.0 lib/jets/commands/db.rb