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