Sha256: 4967cbdac6fdf4fbde517fab0a86af6af6256b805c3db6870c71459714b644fb
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'rails/generators/active_record' module CallbackRequestBootstrap module Generators class InstallGenerator < Rails::Generators::Base #class InstallGenerator < ActiveRecord::Generators::Base include Rails::Generators::Migration desc "Installs callback_request_bootstrap and generates the necessary migrations" source_root File.expand_path("../templates", __FILE__) def self.next_migration_number(path) #Time.now.utc.strftime("%Y%m%d%H%M%S") ActiveRecord::Generators::Base.next_migration_number(path) end def create_migrations migration_template 'migrations/create_requests.rb', 'db/migrate/create_requests.rb' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems