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

Version Path
fesplugas-typus-0.9.10 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.11 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.12 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.13 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.14 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.15 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.16 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.6 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.7 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.8 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb
fesplugas-typus-0.9.9 generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb