Sha256: 3479f17eaf437cce49a0a8583b2b8cef2d1e08f7c55915ef09df0c5dbd27daaa
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
class AddRoleToUserResources < <%= migration_class_name %> def change add_column :<%= model_class_name.tableize.tr('/', '_') %>, :<%= attribute_name %>, :string, null: false, default: "" add_index :<%= model_class_name.tableize.tr('/', '_') %>, :<%= attribute_name %> end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enja-0.1.2 | lib/generators/enja/templates/migration.erb |
enja-0.1.1 | lib/generators/enja/templates/migration.erb |
enja-0.1.0 | lib/generators/enja/templates/migration.erb |