Sha256: 7d92a50da5ce8e11f69dfbcbfdf055ca6441b9577645f70ae499106f19911226
Contents?: true
Size: 500 Bytes
Versions: 11
Compression:
Stored size: 500 Bytes
Contents
class TypusUpdateSchemaTo01Generator < Rails::Generator::Base def manifest record do |m| config_folder = Typus::Configuration.options[:config_folder] Dir["#{Typus.path}/generators/typus_update_schema_to_01/templates/config/*"].each do |f| base = File.basename(f) m.template "config/#{base}", "#{config_folder}/#{base}" end m.migration_template 'migration.rb', 'db/migrate', { :migration_file_name => 'update_typus_schema_to_01' } end end end
Version data entries
11 entries across 11 versions & 1 rubygems