Sha256: a0773ca87641a2fb9702441f78845b36c37505d3c263ae9ae2152aa690262024
Contents?: true
Size: 249 Bytes
Versions: 2
Compression:
Stored size: 249 Bytes
Contents
class AddColumnsTo<%= table_name.capitalize %> < ActiveRecord::Migration def change add_column :<%= table_name %>, :<%= options[:source] %>_id, :integer add_column :<%= table_name %>, :target_<%= options[:target] %>_id, :integer end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_in_relation-0.2.2 | lib/generators/acts_in_relation/templates/add.rb.erb |
acts_in_relation-0.2.1 | lib/generators/acts_in_relation/templates/add.rb.erb |