Class: ActiveRecord::Dbt::Seed::Enum::Yml

Inherits:
Object
  • Object
show all
Includes:
Column::DataTestable::NotNullDataTestable, Column::DataTestable::UniqueDataTestable, DataType::Mapper, I18nWrapper::Translate, Base
Defined in:
lib/active_record/dbt/seed/enum/yml.rb

Constant Summary

Constants included from DataType::Mapper

DataType::Mapper::RUBY_TO_DWH_PLATFORM_TYPE_MAP

Instance Attribute Summary

Attributes included from Base

#enum_column_name, #table_name

Instance Method Summary collapse

Methods included from Base

#initialize

Methods included from I18nWrapper::Translate

#translated_attribute_name, #translated_table_name

Methods included from RequiredMethods

#define_required_methods

Methods included from Column::DataTestable::NotNullDataTestable

#not_null_test

Methods included from Column::DataTestable::UniqueDataTestable

#unique_test

Instance Method Details

#dumpObject



22
23
24
# File 'lib/active_record/dbt/seed/enum/yml.rb', line 22

def dump
  YAML.dump(properties.deep_stringify_keys)
end

#export_pathObject



18
19
20
# File 'lib/active_record/dbt/seed/enum/yml.rb', line 18

def export_path
  "#{basename}.yml"
end