Module: Inscriber::TableHelpers

Included in:
Downloader, Inserter, Uploader
Defined in:
lib/inscriber/table_helper.rb

Instance Method Summary collapse

Instance Method Details

#original_column_name(table_name) ⇒ Object



7
8
9
# File 'lib/inscriber/table_helper.rb', line 7

def original_column_name(table_name)
  "#{original_table_name(table_name)}_id".to_sym
end

#original_table_name(table_name) ⇒ Object



3
4
5
# File 'lib/inscriber/table_helper.rb', line 3

def original_table_name(table_name)
  table_name.sub(/_translations\z/, '')
end