Module: ActiveRecord::DataClassification::ModelSpace

Defined in:
lib/active_record/data_classification/model_space.rb

Class Method Summary collapse

Class Method Details

.all_mysql_model_tablesObject



13
14
15
# File 'lib/active_record/data_classification/model_space.rb', line 13

def all_mysql_model_tables
  models_by_table.keys
end

.modelsObject



7
8
9
10
11
# File 'lib/active_record/data_classification/model_space.rb', line 7

def models
  models_by_table.map do |table, all_models|
    DataClassification::ModelReflection.new(table, all_models)
  end
end