Sha256: 4455cac13777daf2f4a09679e91b534a206551834e06b7ba4a7cee0f8b54901f
Contents?: true
Size: 962 Bytes
Versions: 12
Compression:
Stored size: 962 Bytes
Contents
# This migration comes from knitkit (originally 20110509223702) class AddPublisherRole def self.up SecurityRole.create(:internal_identifier => 'publisher', :description => 'Publisher') SecurityRole.create(:internal_identifier => 'content_author', :description => 'Content Author') SecurityRole.create(:internal_identifier => 'layout_author', :description => 'Layout Author') SecurityRole.create(:internal_identifier => 'editor', :description => 'Editor') SecurityRole.create(:internal_identifier => 'designer', :description => 'Designer') SecurityRole.create(:internal_identifier => 'website_author', :description => 'Website Author') end def self.down SecurityRole.iid('publisher').destroy SecurityRole.iid('content_author').destroy SecurityRole.iid('layout_author').destroy SecurityRole.iid('editor').destroy SecurityRole.iid('designer').destroy SecurityRole.iid('website_author').destroy end end
Version data entries
12 entries across 12 versions & 3 rubygems