Sha256: 8dc51540e68f5c0904d714a9041e56737647e8132a1bd81f2616c3d72aea47e9

Contents?: true

Size: 385 Bytes

Versions: 8

Compression:

Stored size: 385 Bytes

Contents

class Add<%= @image_field.camelize %>FieldTo<%= @class_name.pluralize %> < ActiveRecord::Migration
  def change
    add_column :<%= @class_name.constantize.table_name %>, :<%= @image_field %>, :text<% @properties.each do |name, type|  %>
    add_column :<%= @class_name.constantize.table_name %>, :<%= @prefixed ? @image_field + "_" : "" %><%= name %>, :<%= type %><% end %>
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.7.0.0 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/image/templates/mount/migration.rb.erb