Sha256: 2eb8cbb95a5d017a9c1cfc99af126cc08b706f2fca939223260e378994b5ee45
Contents?: true
Size: 220 Bytes
Versions: 2
Compression:
Stored size: 220 Bytes
Contents
class BentoAdd<%= name.classify %>IdTo<%= name.classify %>s < ActiveRecord::Migration def self.up add_column :users, :<%= name %>_id, :integer end def self.down remove_column :users, :column_name end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bento-0.0.3 | lib/generators/active_record/templates/add_migration.rb |
bento-0.0.2 | lib/generators/active_record/templates/add_migration.rb |