Module: ActiveRecord::Dbt::Seed::Enum::Base
Defined Under Namespace
Classes: DoesNotExistTableError
Instance Attribute Summary collapse
-
#enum_column_name ⇒ Object
readonly
Returns the value of attribute enum_column_name.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
Instance Attribute Details
#enum_column_name ⇒ Object (readonly)
Returns the value of attribute enum_column_name.
8 9 10 |
# File 'lib/active_record/dbt/seed/enum/base.rb', line 8 def enum_column_name @enum_column_name end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
8 9 10 |
# File 'lib/active_record/dbt/seed/enum/base.rb', line 8 def table_name @table_name end |
Instance Method Details
#initialize(table_name, enum_column_name) ⇒ Object
13 14 15 16 17 |
# File 'lib/active_record/dbt/seed/enum/base.rb', line 13 def initialize(table_name, enum_column_name) @table_name = table_name @enum_column_name = enum_column_name @config = ActiveRecord::Dbt::Config.instance end |