This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-01-09 14:00:55 +01:00
|
|
|
# frozen_string_literal: true
|
2017-05-02 02:14:47 +02:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: web_settings
|
|
|
|
#
|
2018-04-23 11:29:17 +02:00
|
|
|
# id :bigint(8) not null, primary key
|
2017-05-02 02:14:47 +02:00
|
|
|
# data :json
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2018-04-23 11:29:17 +02:00
|
|
|
# user_id :bigint(8) not null
|
2017-05-02 02:14:47 +02:00
|
|
|
#
|
2017-01-09 14:00:55 +01:00
|
|
|
|
|
|
|
class Web::Setting < ApplicationRecord
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
validates :user, uniqueness: true
|
|
|
|
end
|