class DaimonSkycrawlers::Generator::MigrationGenerator

@private

Public Class Methods

source_root() click to toggle source
# File lib/daimon_skycrawlers/generator/new.rb, line 111
def self.source_root
  ActiveRecord::Generators::MigrationGenerator.source_root
end

Public Instance Methods

create_migration_file() click to toggle source
# File lib/daimon_skycrawlers/generator/new.rb, line 115
def create_migration_file
  set_local_assigns!
  validate_file_name!
  dest = options[:destination_root]
  migration_template(@migration_template, "#{dest}/db/migrate/#{file_name}.rb")
end