Sha256: d5aa6f3ad8e13bcc84fa31f0217e607fe030b30a80ed97dba6a3e3542265610a
Contents?: true
Size: 553 Bytes
Versions: 9
Compression:
Stored size: 553 Bytes
Contents
require "rails/generators" require "rails/generators/active_record" module Pghero module Generators class SpaceStatsGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.join(__dir__, "templates") def copy_migration migration_template "space_stats.rb", "db/migrate/create_pghero_space_stats.rb", migration_version: migration_version end def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems