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



98
99
100
101
102
103
# File 'lib/core_extensions/active_record/migration_helpers.rb', line 98

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

.triggersObject



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

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