Class: Operations::Generators::SchemaGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Base::Generators::BaseGenerator
Defined in:
lib/generators/operations/schema/schema_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_filesObject



17
18
19
20
21
22
# File 'lib/generators/operations/schema/schema_generator.rb', line 17

def generate_files
  super

  template "base/schema.rb.erb", "#{root_file_path}/operations/#{plural_name}/base/schema.rb"
  template "schema.rb.erb", "#{root_file_path}/operations/#{plural_name}/#{verb}/schema.rb"
end