Module: ActiveRecord::Dbt::Seed::Enum::Base

Included in:
Csv, Yml
Defined in:
lib/active_record/dbt/seed/enum/base.rb

Defined Under Namespace

Classes: DoesNotExistTableError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#enum_column_nameObject (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_nameObject (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