Sha256: 3b5ff32afc8ca30726a48522e059e6fa234808c7f418fd015d4687be9a80e508
Contents?: true
Size: 519 Bytes
Versions: 13
Compression:
Stored size: 519 Bytes
Contents
require "rails/generators/active_record" module FieldTest module Generators class EventsGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.join(__dir__, "templates") def copy_migration migration_template "events.rb", "db/migrate/create_field_test_events.rb", migration_version: migration_version end def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems