VALIDTIONS FOR USER CLASS: - Username must be present and unique; - Email should be present and unique; - Validate email format using regex; Step: 1 : git clone <https copy and paste> Step: 2 : rails s Step: 3: bin/bundle Step: 4: rails db:migrate Step: 5: Open in browser (localhost:3000\) -
Run on terminal,
'rails test/ rake test'
to test your test folder-model folder-cateory_test.rb file .
- Rails console:
You will see SQL Database when you type rails console/rails cin terminal. To add Database of your project.
