mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-12 19:48:36 +00:00
* Improves ruby code in app/models/app_user.rb based on suggestions from Rubocop * Rubocop fixes for more models
7 lines
183 B
Ruby
7 lines
183 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DataQuery < ApplicationRecord
|
|
belongs_to :app
|
|
belongs_to :data_source, optional: true
|
|
validates :name, uniqueness: { scope: [:app_id] }
|
|
end
|