Sha256: 5389b2d6659aa690a573f4500a9a777caed22d05f6c16772eceb6d6a5c29a6b6
Contents?: true
Size: 573 Bytes
Versions: 3
Compression:
Stored size: 573 Bytes
Contents
if Plan.last == nil Plan.create!(:name=>"Yearly",:stripe_id=>365) Plan.create!(:name=>"Monthly",:stripe_id=>30) end roles = ['employee', 'manager', 'owner', 'super_admin', 'user', 'vendor'] puts 'roles' roles.each do |role| Role.where( :name => role ).first_or_create puts 'role: ' << role end find_user =User.find_by_email('admin@pshq.com') user = User.create(:email => 'admin@pshq.com', :password => '12345678') if !find_user user.add_role :super_admin if !find_user if Project.last.nil? Project.create(:name=> "MT2W") Project.create(:name=> "TMA") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pshq_engine-0.1.6 | db/seeds.rb |
pshq_engine-0.1.5 | db/seeds.rb |
pshq_engine-0.0.1 | db/seeds.rb |