mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
ADD db schema in models
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: weapp_settings
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# type :string(255)
|
||||
# link :string(255)
|
||||
# online :boolean default("0")
|
||||
# position :integer default("0")
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class WeappSetting < ApplicationRecord
|
||||
scope :only_online, -> { where(online: true) }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user