Sha256: fd58330c4430f6add2c95c0aaf2146fba75136f0d7374b6028990e783a8b19fd

Contents?: true

Size: 411 Bytes

Versions: 17

Compression:

Stored size: 411 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/add_pose_tables.rb'
  end
  
  def self.next_migration_number(path)
      Time.now.utc.strftime("%Y%m%d%H%M%S")
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pose-1.2.3 lib/generators/pose_generator.rb
pose-1.2.2 lib/generators/pose_generator.rb
pose-1.2.1 lib/generators/pose_generator.rb
pose-1.2.0 lib/generators/pose_generator.rb
pose-1.1.3 lib/generators/pose_generator.rb
pose-1.1.2 lib/generators/pose_generator.rb
pose-1.1.1 lib/generators/pose_generator.rb
pose-1.1.0 lib/generators/pose_generator.rb
pose-1.0.0 lib/generators/pose_generator.rb
pose-0.3 lib/generators/pose_generator.rb
pose-0.2.6 lib/generators/pose_generator.rb
pose-0.2.5 lib/generators/pose_generator.rb
pose-0.2.4 lib/generators/pose_generator.rb
pose-0.2.3 lib/generators/pose_generator.rb
pose-0.2.2 lib/generators/pose_generator.rb
pose-0.2.1 lib/generators/pose_generator.rb
pose-0.2 lib/generators/pose_generator.rb