Sha256: df3f3e480d785a3485264a2219296ca3b8b4b220e50c709cc0f1d93cb4fef90e

Contents?: true

Size: 352 Bytes

Versions: 25

Compression:

Stored size: 352 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

25 entries across 25 versions & 2 rubygems

Version Path
standalone_migrations-5.2.6 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.5 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.4 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.3 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.2 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.1 lib/standalone_migrations/generator.rb
standalone_migrations-5.2.0 lib/standalone_migrations/generator.rb
standalone_migrations-5.0.0 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.5 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.4 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.3 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.2 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.1 lib/standalone_migrations/generator.rb
standalone_migrations-4.0.0 lib/standalone_migrations/generator.rb
standalone_migrations-2.1.5 lib/standalone_migrations/generator.rb
ejhayes_standalone_migrations-2.2.0 lib/standalone_migrations/generator.rb
standalone_migrations-2.1.4 lib/standalone_migrations/generator.rb
standalone_migrations-2.1.3 lib/standalone_migrations/generator.rb
standalone_migrations-2.1.1 lib/standalone_migrations/generator.rb
standalone_migrations-2.1.0 lib/standalone_migrations/generator.rb