Sha256: fb3a5851eb647d49326741354e155974d6a0792d6705420be9458884ad2323ac

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'
require 'tramway/generators/install_generator'

module Tramway::Profiles::Generators
  class InstallGenerator < ::Tramway::Generators::InstallGenerator
    include Rails::Generators::Migration
    source_root File.expand_path('templates', __dir__)

    def run_other_generators; 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_profiles_social_networks.rb', 'db/migrate/create_tramway_profiles_social_networks.rb'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.4 lib/tramway/profiles/generates/install_generator.rb
tramway-profiles-1.4.1.3 lib/tramway/profiles/generates/install_generator.rb
tramway-profiles-1.4.1.2 lib/tramway/profiles/generates/install_generator.rb