Sha256: 82dfea88138a1eebfff6189317b5c68291e341d4a0e2393a0858618866fdf434
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
module Doorkeeper module Sequel class MigrationGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc 'Installs Doorkeeper Sequel migration file.' def install copy_file 'migration.rb', migration_file_name end private def migration_file_name "db/migrate/#{migration_timestamp}_create_doorkeeper_tables.rb" end def migration_timestamp Time.current.strftime('%Y%m%d%H%M%S') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems