Sha256: 7717e68533e5c5cbfdc9e53d1beb9ff4d656a5ee1cd3af6c1b9b31cf6d1d25f0
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 Bytes
Contents
include Rails::Generators::Migration module Adminpanel module Generators class InitializeGenerator < Rails::Generators::Base desc "Generate the migrations necessary to start the gem" source_root File.expand_path("../templates", __FILE__) def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end def create_migration migration_template 'create_adminpanel_tables.rb', 'db/migrate/create_adminpanel_tables.rb' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems