Sha256: f910cbc83ad4e68f98bd59d3d451494a0d755673482d79afc36691cb10b1ff89
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' module Pose class RemoveGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file migration_template 'remove_migration.rb', 'db/migrate/remove_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/remove_pose_generator.rb |