ToolJet/app/models/app.rb
Unnikrishnan KP 47a816742c
Improves ruby code in app/models/ based on suggestions from RuboCop (#179)
* Improves ruby code in app/models/app_user.rb based on suggestions from Rubocop

* Rubocop fixes for more models
2021-06-01 12:36:13 +05:30

10 lines
271 B
Ruby

# frozen_string_literal: true
class App < ApplicationRecord
belongs_to :organization
has_many :data_queries
has_many :app_users
has_many :app_versions
belongs_to :current_version, class_name: "AppVersion", optional: true
belongs_to :user, optional: true
end