Sha256: 870516c1c0e05c2054264c46a12ecb0b2a536593d6c75d6388daf344cbad5092

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

require "rails/generators"
require "rails/generators/migration"

class ReadActivityGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)

  def self.next_migration_number(path)
    Time.now.utc.strftime("%Y%m%d%H%M%S")
  end

  def create_migration_file
    migration_template "create_read_activity_marks.rb", "db/migrate/create_read_activity_marks.rb"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
read_activity-0.1.0 lib/generators/read_activity/read_activity_generator.rb
read_activity-0.0.4 lib/generators/read_activity/read_activity_generator.rb
read_activity-0.0.3.1 lib/generators/read_activity/read_activity_generator.rb
read_activity-0.0.3 lib/generators/read_activity/read_activity_generator.rb