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