Sha256: 5df17cd05cab343395a83ceef37477541c8f55b58c80a341dd84d1aee2da94dc
Contents?: true
Size: 823 Bytes
Versions: 51
Compression:
Stored size: 823 Bytes
Contents
# This migration comes from erp_tech_svcs (originally 20121130212146) class NoteCapabilities def self.up #insert data here admin = SecurityRole.find_or_create_by_description_and_internal_identifier(:description => 'Admin', :internal_identifier => 'admin') employee = SecurityRole.find_or_create_by_description_and_internal_identifier(:description => 'Employee', :internal_identifier => 'employee') admin.add_capability('create', 'Note') admin.add_capability('delete', 'Note') admin.add_capability('edit', 'Note') admin.add_capability('view', 'Note') employee.add_capability('create', 'Note') employee.add_capability('delete', 'Note') employee.add_capability('edit', 'Note') employee.add_capability('view', 'Note') end def self.down #remove data here end end
Version data entries
51 entries across 51 versions & 17 rubygems