Sha256: 9b1a8e76f7af3596c40a372cf71f453f8d048196fb03c9ba8f933648ef89306c
Contents?: true
Size: 419 Bytes
Versions: 15
Compression:
Stored size: 419 Bytes
Contents
# -*- encoding : utf-8 -*- class Add<%= @model.attributes.collect{|a| a.name.camelize}.join('') %>ToUsers < ActiveRecord::Migration def self.up <%- @model.simple_attributes.each do |attr| -%> add_column :users, :<%= attr.name %>, :<%= attr.migration_field %> <%- end -%> end def self.down <%- @model.simple_attributes.each do |attr| -%> remove_column :users, :<%= attr.name %> <%- end -%> end end
Version data entries
15 entries across 15 versions & 1 rubygems