Sha256: 77c19ed510d8e5495058706382a6ac3cb3371608cc7785e46adde2278f33a789

Contents?: true

Size: 487 Bytes

Versions: 12

Compression:

Stored size: 487 Bytes

Contents

require "rails/generators/active_record/migration"

module LocalizableModel
  module Generators
    class MigrationGenerator < Rails::Generators::Base
      include ActiveRecord::Generators::Migration

      desc "Creates the LocalizableModel migration"
      source_root File.expand_path("../templates", __FILE__)

      def copy_files
        migration_template(
          "create_localizations.rb",
          "db/migrate/create_localizations.rb"
        )
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
localizable_model-0.6.4 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.6.3 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.6.2 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.6.1 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.6.0 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.5 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.4 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.3 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.2 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.1 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.5.0 lib/rails/generators/localizable_model/migration/migration_generator.rb
localizable_model-0.0.1 lib/rails/generators/localizable_model/migration/migration_generator.rb