Sha256: 7d32e4a1654649d60ce9dcb3914636a941df33d256d3598ec7a08fa710f6d685

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

# these generators are backed by rails' generators
require "rails/generators"
module StandaloneMigrations
  class Generator
    def self.migration(name, options="")
      generator_params = [name] + options.split(" ")
      Rails::Generators.invoke "active_record:migration", generator_params,
        destination_root: Rails.root
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
standalone_migrations-2.0.1 lib/standalone_migrations/generator.rb
standalone_migrations-2.0.0 lib/standalone_migrations/generator.rb