mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 05:10:59 +00:00
Annotations
This commit is contained in:
parent
2aea81d063
commit
bb49ab765f
19 changed files with 28 additions and 26 deletions
|
@ -65,6 +65,7 @@ class ContestsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
# FIXME: don't use this kind of update
|
||||
def update
|
||||
raise AccessError unless @contest.can_update? cuser
|
||||
if update_type == "contest"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# id :integer not null, primary key
|
||||
# status :integer not null
|
||||
# text :text(16777215)
|
||||
# text_coding :integer default("0"), not null
|
||||
# text_coding :integer default(0), not null
|
||||
# text_parsed :text(16777215)
|
||||
# title :string(255)
|
||||
# version :integer
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# mandatory :boolean
|
||||
# match_time :datetime
|
||||
# response :string(255)
|
||||
# status :integer default("0"), not null
|
||||
# status :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# contester1_id :integer
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Table name: contests
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# contest_type :integer default("0"), not null
|
||||
# contest_type :integer default(0), not null
|
||||
# default_time :time
|
||||
# end :datetime
|
||||
# modulus_3to1 :float(24)
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
# Table name: contesters
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# active :boolean default("1"), not null
|
||||
# draw :integer default("0"), not null
|
||||
# active :boolean default(TRUE), not null
|
||||
# draw :integer default(0), not null
|
||||
# extra :integer not null
|
||||
# loss :integer default("0"), not null
|
||||
# score :integer default("0"), not null
|
||||
# loss :integer default(0), not null
|
||||
# score :integer default(0), not null
|
||||
# trend :integer not null
|
||||
# win :integer default("0"), not null
|
||||
# win :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# contest_id :integer
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# lastpick2 :datetime
|
||||
# status :integer
|
||||
# turn :integer
|
||||
# votes :integer default("0"), not null
|
||||
# votes :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# captain1_id :integer
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
# Table name: gatherers
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# status :integer default("0"), not null
|
||||
# status :integer default(0), not null
|
||||
# team :integer
|
||||
# votes :integer default("0"), not null
|
||||
# votes :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# gather_id :integer
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Table name: maps
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# deleted :boolean default("0"), not null
|
||||
# deleted :boolean default(FALSE), not null
|
||||
# download :string(255)
|
||||
# name :string(255)
|
||||
# picture :string(255)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
# id :integer not null, primary key
|
||||
# option :string(255)
|
||||
# votes :integer default("0"), not null
|
||||
# votes :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# poll_id :integer
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# id :integer not null, primary key
|
||||
# end_date :datetime
|
||||
# question :string(255)
|
||||
# votes :integer default("0"), not null
|
||||
# votes :integer default(0), not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# user_id :integer
|
||||
|
|
|
@ -31,12 +31,12 @@
|
|||
# music :string(255)
|
||||
# notify_any_match :boolean
|
||||
# notify_articles :boolean
|
||||
# notify_challenge :boolean default("1"), not null
|
||||
# notify_challenge :boolean default(TRUE), not null
|
||||
# notify_gather :boolean
|
||||
# notify_movies :boolean
|
||||
# notify_news :boolean
|
||||
# notify_own_match :boolean
|
||||
# notify_pms :boolean default("1"), not null
|
||||
# notify_pms :boolean default(TRUE), not null
|
||||
# psu :string(255)
|
||||
# ram :string(255)
|
||||
# res :string(255)
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
# Table name: servers
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# active :boolean default("1"), not null
|
||||
# active :boolean default(TRUE), not null
|
||||
# description :string(255)
|
||||
# dns :string(255)
|
||||
# domain :integer default("0"), not null
|
||||
# domain :integer default(0), not null
|
||||
# idle :datetime
|
||||
# ip :string(255)
|
||||
# irc :string(255)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Table name: teams
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# active :boolean default("1"), not null
|
||||
# active :boolean default(TRUE), not null
|
||||
# comment :string(255)
|
||||
# country :string(255)
|
||||
# irc :string(255)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Table name: topics
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# state :integer default("0"), not null
|
||||
# state :integer default(0), not null
|
||||
# title :string(255)
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# lastname :string(255)
|
||||
# lastvisit :datetime
|
||||
# password :string(255)
|
||||
# public_email :boolean default("0"), not null
|
||||
# public_email :boolean default(FALSE), not null
|
||||
# steamid :string(255)
|
||||
# time_zone :string(255)
|
||||
# username :string(255)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_03_15_183444) do
|
||||
ActiveRecord::Schema.define(version: 2020_03_31_020637) do
|
||||
|
||||
create_table "article_versions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
||||
t.integer "article_id"
|
||||
|
@ -206,6 +206,7 @@ ActiveRecord::Schema.define(version: 2020_03_15_183444) do
|
|||
t.datetime "updated_at"
|
||||
t.integer "parent_id"
|
||||
t.boolean "hidden", default: false, null: false
|
||||
t.string "title"
|
||||
t.index ["parent_id"], name: "index_directories_on_parent_id"
|
||||
end
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
# Table name: servers
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# active :boolean default("1"), not null
|
||||
# active :boolean default(TRUE), not null
|
||||
# description :string(255)
|
||||
# dns :string(255)
|
||||
# domain :integer default("0"), not null
|
||||
# domain :integer default(0), not null
|
||||
# idle :datetime
|
||||
# ip :string(255)
|
||||
# irc :string(255)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Table name: topics
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# state :integer default("0"), not null
|
||||
# state :integer default(0), not null
|
||||
# title :string(255)
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# lastname :string(255)
|
||||
# lastvisit :datetime
|
||||
# password :string(255)
|
||||
# public_email :boolean default("0"), not null
|
||||
# public_email :boolean default(FALSE), not null
|
||||
# steamid :string(255)
|
||||
# time_zone :string(255)
|
||||
# username :string(255)
|
||||
|
|
Loading…
Reference in a new issue