Sha256: 9001906abbeb295f3f2710674011d7f84341d83946dcb074da78e5a6eb87c98b

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

class Add<%= formatted_locale.camelize %>Translation < ActiveRecord::Migration

  def change
    <%- translated_columns.each do |column_hash| %>
      add_column(:kuhsaft_pages, "<%= get_attribute column_hash %>", :<%= get_type column_hash %>) unless Kuhsaft::Page.column_names.include?("<%= get_attribute column_hash %>")
    <%- end %>
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.6.2 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.6.1 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.5.2 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.6.0 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.5.1 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.5.0 lib/templates/kuhsaft/translations/add_translation.erb
qbrick-2.5.0.pre lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.4.3 lib/templates/kuhsaft/translations/add_translation.erb
kuhsaft-2.4.2 lib/templates/kuhsaft/translations/add_translation.erb