Sha256: 9853ecdfc4382f76987475290fb09fe16e1a2dc3f0741e9e23eb5c8ca3f20cc3
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' class PoseGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file migration_template 'migration.rb', 'db/migrate/pose.rb' end def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pose-0.0.3 | lib/generators/pose_generator.rb |
pose-0.0.2 | lib/generators/pose_generator.rb |