Sha256: c8c1f47564a0fc49e0b4ecbc7431bb171445abb013fe82a87ef00f0d24d84e26

Contents?: true

Size: 394 Bytes

Versions: 12

Compression:

Stored size: 394 Bytes

Contents

class VolontariatSeed < DbSeed
  USER_ROLES = {
    master: {},
    admin: {},
    project_owner: {},
    user: {}
  }
  
  def create_fixtures
    super
    
    create_areas
    
    # should send notifications to stream and email
  end
  
  private
  
  def create_areas
    Area.create!(
      [ 
        { name: 'General' },
        { name: 'Software Engineering' }
      ]
    )
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
voluntary-0.4.0 lib/volontariat_seed.rb
voluntary-0.3.0 lib/volontariat_seed.rb
voluntary-0.2.4 lib/volontariat_seed.rb
voluntary-0.2.3 lib/volontariat_seed.rb
voluntary-0.2.2 lib/volontariat_seed.rb
voluntary-0.2.1 lib/volontariat_seed.rb
voluntary-0.2.0 lib/volontariat_seed.rb
voluntary-0.1.0 lib/volontariat_seed.rb
voluntary-0.1.0.rc4 lib/volontariat_seed.rb
voluntary-0.1.0.rc3 lib/volontariat_seed.rb
voluntary-0.1.0.rc2 lib/volontariat_seed.rb
voluntary-0.1.0.rc1 lib/volontariat_seed.rb