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