mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
moved comments to the bottom, they are way less intrusive there
This commit is contained in:
@ -1,17 +1,3 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: draft_sequences
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer not null
|
||||
# draft_key :string(255) not null
|
||||
# sequence :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_draft_sequences_on_user_id_and_draft_key (user_id,draft_key) UNIQUE
|
||||
#
|
||||
|
||||
class DraftSequence < ActiveRecord::Base
|
||||
def self.next!(user,key)
|
||||
user_id = user
|
||||
@ -37,3 +23,18 @@ class DraftSequence < ActiveRecord::Base
|
||||
r.length.zero? ? 0 : r[0][0].to_i
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: draft_sequences
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer not null
|
||||
# draft_key :string(255) not null
|
||||
# sequence :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_draft_sequences_on_user_id_and_draft_key (user_id,draft_key) UNIQUE
|
||||
#
|
||||
|
||||
|
Reference in New Issue
Block a user