Sha256: 35d5a0e746462e43577f0b86ebb3bc6e34667d4c6829297ccf3d89f974664aca
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 Bytes
Contents
require 'rails/generators/active_record' module SecondStep class InitializerGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) def create_migration migration_template 'migration.rb', 'db/migrate/create_secondstep_tables.rb' end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end end
Version data entries
5 entries across 4 versions & 1 rubygems