2017-01-10 00:00:55 +11:00
|
|
|
# frozen_string_literal: true
|
2017-05-02 10:14:47 +10:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: web_settings
|
|
|
|
#
|
|
|
|
# data :json
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2017-11-13 02:18:50 +11:00
|
|
|
# id :bigint not null, primary key
|
|
|
|
# user_id :bigint
|
2017-05-02 10:14:47 +10:00
|
|
|
#
|
2017-01-10 00:00:55 +11:00
|
|
|
|
|
|
|
class Web::Setting < ApplicationRecord
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
validates :user, uniqueness: true
|
|
|
|
end
|