Sha256: 8f46676657187092cbd1c3c62b7389e74d7b4e12d667b8639f1cd565ca3624f6
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' module Pose module Generators 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pose-1.2.4 | lib/rails/generators/pose/pose_generator.rb |