Sha256: baabd31cc7cb19f966a38e5a47c13386797bda03ba59a3a95e366d90e529d5f0
Contents?: true
Size: 206 Bytes
Versions: 2
Compression:
Stored size: 206 Bytes
Contents
class IAmICanAddRoleIdsTo<%= name.camelize %> < ActiveRecord::Migration::Current def change add_column :<%= "#{name.underscore.pluralize}" %>, :role_ids, :integer, array: true, default: [ ] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
i_am_i_can-3.0.0pre | lib/generators/i_am_i_can/templates/migrations/add_to_subject.erb |
i_am_i_can-2.1.0 | lib/generators/i_am_i_can/templates/migrations/add_to_subject.erb |