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