Sha256: 76a5f83a5748c5381262bf2ce8212bbe66733b2ad7a0793860ed4c39eab69269

Contents?: true

Size: 307 Bytes

Versions: 11

Compression:

Stored size: 307 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'rails/generators/active_record'

class CardMigrationGenerator < ActiveRecord::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  def create_migration_file
    migration_template "card_migration.erb", "db/migrate_cards/#{file_name}.rb"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wagn-1.13.0 lib/card/generators/card_migration/card_migration_generator.rb
wagn-1.13.0.pre2 lib/card/generators/card_migration/card_migration_generator.rb
wagn-1.13.0.pre1 lib/card/generators/card_migration/card_migration_generator.rb
wagn-1.13.0.pre lib/card/generators/card_migration/card_migration_generator.rb
wagn-1.12.13 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.12 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.11 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.10 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.9 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.8 lib/generators/card_migration/card_migration_generator.rb
wagn-1.12.7 lib/generators/card_migration/card_migration_generator.rb