Sha256: 1e3d0bbb158b23b8946d62698dc61578f2520d82d290af1988585eff0c97d734
Contents?: true
Size: 215 Bytes
Versions: 2
Compression:
Stored size: 215 Bytes
Contents
class AddPrimaryColumnTo<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %> def change add_column :<%= table_name.to_sym %>, :primary, :boolean, default: false, null: false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
set_as_primary-0.1.1 | lib/generators/set_as_primary/templates/migration.rb |
set_as_primary-0.1.0 | lib/generators/set_as_primary/templates/migration.rb |