Sha256: 93691740282f8f33f5195d26878be7be571fe6ddc6622fceef918ca27fd92ed3

Contents?: true

Size: 214 Bytes

Versions: 8

Compression:

Stored size: 214 Bytes

Contents

class Add<%= @field_name.camelize %>FieldTo<%= @model_name.pluralize %> < ActiveRecord::Migration
    def change
        add_column :<%= @model_name.constantize.table_name %>, :<%= @field_name %>, :text
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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