Skip to content
Snippets Groups Projects
setting.rb 384 B
Newer Older
  • Learn to ignore specific revisions
  • # frozen_string_literal: true
    
    yhirano's avatar
    yhirano committed
    # == Schema Information
    #
    # Table name: web_settings
    #
    
    Eugen Rochko's avatar
    Eugen Rochko committed
    #  id         :integer          not null, primary key
    
    yhirano's avatar
    yhirano committed
    #  data       :json
    #  created_at :datetime         not null
    #  updated_at :datetime         not null
    
    #  user_id    :integer          not null
    
    yhirano's avatar
    yhirano committed
    #
    
    
    class Web::Setting < ApplicationRecord
      belongs_to :user
    
      validates :user, uniqueness: true
    end