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