Sha256: 76a14b08a605e3aafe2c2725a3508b0f74910a5566383f962ab38ebce664b500

Contents?: true

Size: 346 Bytes

Versions: 16

Compression:

Stored size: 346 Bytes

Contents

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.7 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.10 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.9 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.8 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.7 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.6 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.5 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.4 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.3 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.2 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.1 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.6.0 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.5.2 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.5.1 lib/templates/qbrick/translations/add_translation.erb
qbrick-2.5.0 lib/templates/qbrick/translations/add_translation.erb