Sha256: 082a17e3416840e504c86fdae79b8aa4cfe17ca01c6f00833ecd2a76f025da55

Contents?: true

Size: 753 Bytes

Versions: 51

Compression:

Stored size: 753 Bytes

Contents

# This migration comes from erp_tech_svcs (originally 20110109173616)
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

51 entries across 51 versions & 17 rubygems

Version Path
erp_tech_svcs-3.1.8 spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.14 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.13 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_forms-3.1.1 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_app-3.1.14 spec/dummy/db/data_migrations/20130422163133_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.12 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_orders-3.1.1 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_work_effort-3.1.1 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.5 spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb
erp_app-3.1.12 spec/dummy/db/data_migrations/20130422163133_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.9 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.8 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.4 spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb
erp_forms-3.1.0 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_app-3.1.10 spec/dummy/db/data_migrations/20130422163133_create_capability_scope_types.erp_tech_svcs.rb
erp_app-3.1.9 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_app-3.1.8 spec/dummy/db/data_migrations/20130422163133_create_capability_scope_types.erp_tech_svcs.rb
knitkit-2.1.7 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb