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

Version Path
knitkit-2.1.14 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.13 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.12 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.9 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.8 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.7 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.5 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
erp_search-3.1.1 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
erp_search-3.1.0 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb