Sha256: 164db6c9af41931e21a3387580afccb010d864953fa073752f69350d4423a230
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
class DataTaskGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file migration_template "data_task.rb", "db/data_tasks/#{file_name}.rb" end def self.next_migration_number(dirname) #:nodoc: next_migration_number = current_migration_number(dirname) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end end
Version data entries
3 entries across 3 versions & 1 rubygems