From 332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Wed, 31 Jan 2024 17:47:56 -0800 Subject: initial mistake --- app/models/account.rb | 4 ++++ app/models/application_record.rb | 3 +++ app/models/concerns/.keep | 0 app/models/league.rb | 2 ++ app/models/league_pick_score.rb | 7 +++++++ app/models/player_score.rb | 2 ++ 6 files changed, 18 insertions(+) create mode 100644 app/models/account.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/models/league.rb create mode 100644 app/models/league_pick_score.rb create mode 100644 app/models/player_score.rb (limited to 'app/models') diff --git a/app/models/account.rb b/app/models/account.rb new file mode 100644 index 0000000..4fcee6f --- /dev/null +++ b/app/models/account.rb @@ -0,0 +1,4 @@ +class Account < ApplicationRecord + include Rodauth::Model(RodauthMain) + enum :status, unverified: 1, verified: 2, closed: 3 +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 0000000..b63caeb --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + primary_abstract_class +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/league.rb b/app/models/league.rb new file mode 100644 index 0000000..ff967fc --- /dev/null +++ b/app/models/league.rb @@ -0,0 +1,2 @@ +class League < ApplicationRecord +end diff --git a/app/models/league_pick_score.rb b/app/models/league_pick_score.rb new file mode 100644 index 0000000..f7c6521 --- /dev/null +++ b/app/models/league_pick_score.rb @@ -0,0 +1,7 @@ +class LeaguePickScore < ApplicationRecord + def self.ransackable_attributes(auth_object = nil) + ["champion", "conference", "divisional", "league_id", "player", "playoffs", "superbowl", "team", "total", "win"] + end + + # private_class_method :ransackable_attributes +end diff --git a/app/models/player_score.rb b/app/models/player_score.rb new file mode 100644 index 0000000..a79e4a7 --- /dev/null +++ b/app/models/player_score.rb @@ -0,0 +1,2 @@ +class PlayerScore < ApplicationRecord +end -- cgit v1.2.3