Initial commit of Todoizer web application
Build and Validate / build-and-test (push) Failing after 1m23s

This commit is contained in:
2026-04-20 08:56:12 -04:00
commit 1f637c6bde
12 changed files with 468 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
require 'active_record'
require 'bcrypt'
class User < ActiveRecord::Base
has_secure_password validations: false
has_many :todos, dependent: :destroy
validates :username, presence: true, uniqueness: true, unless: :is_temporary
validates :password, presence: true, unless: :is_temporary
end
class Todo < ActiveRecord::Base
belongs_to :user
validates :content, presence: true
end