class StaticpageController < ApplicationController
	def index
		
	end

	def createallusers

		AdminUser.first_or_create!(email: 'admin@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		StudentMember.first_or_create!(id: '0',
			name: 'Default User', 
			rollnum: '15DF12345',
			portfolio: 'Default Portfolio',
			email: 'student@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		Coordinator.first_or_create!(id: '0',
			name: 'Default User',
			rollnum: '15DF12346',
			portfolio: 'Default Portfolio',
			email: 'coordinator@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		render plain: "Done!"
		
	end
end

class StaticpageController < ApplicationController
	def index
		
	end

	def createallusers

		AdminUser.create(email: 'admin@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		puts "AdminUser created"

		StudentMember.create(id: '0',
			name: 'Default User', 
			rollnum: '15DF12345',
			portfolio: 'Default Portfolio',
			email: 'student@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		Coordinator.create(id: '0',
			name: 'Default User',
			rollnum: '15DF12346',
			portfolio: 'Default Portfolio',
			email: 'coordinator@example.com', 
			password: 'password', 
			password_confirmation: 'password')

		lastid = Alumni.all.count

		for i in 1..10
			j = lastid + i
			Alumni.create(
				id: j.to_s,
				name: 'Default User ' + i.to_s,
				year: '201' + i.to_s,
				hall: 'SH',
				department: 'alumdep' + i.to_s
				)
		end

		render plain: "Done!"
		
	end
end

Change the createallusers action slightly.
Change the createallusers action slightly.

Create 10 extra alumni, whenever this is done.

** Remove this when pushing into production **

Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>
