set up rails

This commit is contained in:
jane 2021-11-12 22:20:13 -05:00
parent 3854b1edfe
commit 1e2aecc21c
138 changed files with 9829 additions and 53 deletions

View file

@ -0,0 +1,3 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end

View file

@ -0,0 +1,3 @@
class AuthorizedApplication < ApplicationRecord
belongs_to :user
end

View file

9
app/models/user.rb Normal file
View file

@ -0,0 +1,9 @@
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatable,
:trackable, :confirmable
has_many :authorized_applications, dependent: :destroy
end