Method: Netfira::WebConnect::Migration#create_l10n_table

Defined in:
lib/netfira/web_connect/migration.rb

#create_l10n_table(table_name) ⇒ Object



44
45
46
47
48
49
50
# File 'lib/netfira/web_connect/migration.rb', line 44

def create_l10n_table(table_name)
  create_table l10n_suffix(table_name) do |t|
    t.references table_name.to_s.singularize.to_sym, index: true
    t.string :language, limit: 20, index: true
    yield t
  end
end