setting.rb 384 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: web_settings
  5. #
  6. # id :bigint(8) not null, primary key
  7. # data :json
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. # user_id :bigint(8) not null
  11. #
  12. class Web::Setting < ApplicationRecord
  13. belongs_to :user
  14. validates :user, uniqueness: true
  15. end