Sha256: 0b24467117e341e8afb34e8bc5ab796b8e4bf373c17e0a732194a7c473ef2709

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

class AddZettoTo<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %>
  def change
    <% migration_data.each do |name, properties| %>
        add_column :<%= table_name %>, :<%= name %>, <%= properties %> unless column_exists? :<%= table_name %>, :<%= name %>
    <% end %>
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zetto-2.2.0 lib/generators/active_record/templates/migration_existing.erb