Class: CoreExtensions::ActiveRecord::MigrationHelpers::DatabaseObjectPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/core_extensions/active_record/migration_helpers.rb

Overview

Make sure to look in the host Rails app as well as in the engine

Class Method Summary collapse

Class Method Details

.functionsObject



90
91
92
93
94
95
# File 'lib/core_extensions/active_record/migration_helpers.rb', line 90

def functions
  [
    Rails.root.join("db", "functions"),
    Renalware::Engine.root.join("db", "functions")
  ]
end

.triggersObject



83
84
85
86
87
88
# File 'lib/core_extensions/active_record/migration_helpers.rb', line 83

def triggers
  [
    Rails.root.join("db", "triggers"),
    Renalware::Engine.root.join("db", "triggers")
  ]
end