Sha256: ebb9b6775917b2941f6998b5646cbec227ae026bd5a72828ca6d37fa780f3c53

Contents?: true

Size: 683 Bytes

Versions: 12

Compression:

Stored size: 683 Bytes

Contents

class CreateCapabilityScopeTypes
  
  def self.up
    CapabilityType.create(:internal_identifier => 'download', :description => 'Download') if CapabilityType.where("internal_identifier = 'download'").first.nil?

    ScopeType.create(:description => 'Instance', :internal_identifier => 'instance') if ScopeType.where("internal_identifier = 'instance'").first.nil?
    ScopeType.create(:description => 'Class', :internal_identifier => 'class') if ScopeType.where("internal_identifier = 'class'").first.nil?
    ScopeType.create(:description => 'Query', :internal_identifier => 'query') if ScopeType.where("internal_identifier = 'query'").first.nil?
  end
  
  def self.down
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
erp_tech_svcs-4.2.0 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-4.0.0 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.8 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.7 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.5 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.4 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.3 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.2 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.1 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.0.12 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.1.0 db/data_migrations/20110109173616_create_capability_scope_types.rb
erp_tech_svcs-3.0.11 db/data_migrations/20110109173616_create_capability_scope_types.rb