Sha256: e871c6692ac3ac2197301ec2ab31b32aad8f5342deae231cebb13e7da7b18568

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

require 'rails/generators/active_record'

module Backgroundrb
  module Generators
    class BdrbMigrationGenerator < ActiveRecord::Generators::Base
      def self.source_root
        @source_root ||= File.expand_path('../templates', __FILE__)
      end

      def copy_backgroundrb_migration
        migration_template "migration.rb", "db/migrate/backgroundrb_create_#{table_name}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backgroundrb-rails3-1.1.2 lib/generators/backgroundrb/bdrb_migration/bdrb_migration_generator.rb
backgroundrb-rails3-1.1.1 lib/generators/backgroundrb/bdrb_migration/bdrb_migration_generator.rb
backgroundrb-rails3-1.1 lib/generators/backgroundrb/bdrb_migration/bdrb_migration_generator.rb