Sha256: 1623aad9dc298852e6142e316cac3613c87d640e960c35a842060b8d795faa98
Contents?: true
Size: 762 Bytes
Versions: 4
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' require 'tramway/core/generators/install_generator' module Tramway::User::Generators class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator include Rails::Generators::Migration source_root File.expand_path('templates', __dir__) desc 'Add the migrations for User' def run_another_generators generate 'tramway:core:install' end def self.next_migration_number(path) next_migration_number = current_migration_number(path) + 1 ActiveRecord::Migration.next_migration_number next_migration_number end def copy_migrations migration_template 'create_tramway_user_users.rb', 'db/migrate/create_tramway_user_users.rb' end end end
Version data entries
4 entries across 4 versions & 1 rubygems