From e5e68bbaaec4d0cfa699fc17dbe76b1e426718c5 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 8 Mar 2021 13:55:46 +0800 Subject: [PATCH] Update temp_file. --- temp_file/app/models/site.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/temp_file/app/models/site.rb b/temp_file/app/models/site.rb index b3d5089..ffb8e45 100644 --- a/temp_file/app/models/site.rb +++ b/temp_file/app/models/site.rb @@ -6,6 +6,11 @@ class Site DEBUG = false has_many :page_sets, :autosave => true, :dependent => :destroy accepts_nested_attributes_for :page_sets, :allow_destroy => true + field :root_url, type: String + field :update_flag, type: Boolean, default: true + field :password_high_security, type: Boolean, default: false + field :change_password_regularly, type: Boolean, default: false + field :change_password_period, type: String field :title, as: :slug_title, type: String, localize: true field :school, type: String field :department, type: String @@ -49,6 +54,15 @@ class Site field :google_oauth_enabled, :type => Boolean, :default => false field :google_client_id field :google_client_secret + + field :gmail_oauth2_enabled, :type => Boolean, :default => false + field :gmail_login_flag, :type => Boolean, :default => false + field :gmail_client_id + field :gmail_client_secret + field :gmail_access_token + field :gmail_refresh_token + field :gmail + field :meta_tags field :every_page_sharer, type: Array, :default => ["facebook","line","twitter","google","printer"] @@ -70,6 +84,8 @@ class Site field :orbit_bar_submenu_text_color , type: String, :default => "#ffffff" field :orbit_bar_animation_time , type: String, :default => "0.3s" field :login_text , type: String, :default => "", localize: true + field :sign_up_hint ,:type => Hash, :default => {} + field :sign_up_hint_enable ,:type => Hash, :default => {} mount_uploader :default_image, ImageUploader mount_uploader :site_logo, ImageUploader mount_uploader :site_logo_1, ImageUploader