Sha256: 12b50bee1fd95d0ab1a78e91204ac0a7b5fc3f1fc23889d0dbd03acebd193105

Contents?: true

Size: 385 Bytes

Versions: 23

Compression:

Stored size: 385 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

require "rails/generators"

module Stealth
  module Migrations
    class Generator
      def self.migration(name, options="")
        generator_params = [name] + options.split(" ")
        Rails::Generators.invoke("active_record:migration", generator_params,
          destination_root: Stealth.root
        )
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
stealth-2.0.0.beta7 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta6 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta5 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta4 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta3 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta2 lib/stealth/migrations/generators.rb
stealth-2.0.0.beta1 lib/stealth/migrations/generators.rb
stealth-1.1.6 lib/stealth/migrations/generators.rb
stealth-1.1.5 lib/stealth/migrations/generators.rb
stealth-1.1.4 lib/stealth/migrations/generators.rb
stealth-1.1.3 lib/stealth/migrations/generators.rb
stealth-1.1.2 lib/stealth/migrations/generators.rb
stealth-1.1.1 lib/stealth/migrations/generators.rb
stealth-1.1.0 lib/stealth/migrations/generators.rb
stealth-1.1.0.rc3 lib/stealth/migrations/generators.rb
stealth-1.1.0.rc2 lib/stealth/migrations/generators.rb
stealth-1.1.0.rc1 lib/stealth/migrations/generators.rb
stealth-1.0.4 lib/stealth/migrations/generators.rb
stealth-1.0.3 lib/stealth/migrations/generators.rb
stealth-1.0.2 lib/stealth/migrations/generators.rb