mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
lets try out annotations
This commit is contained in:
@ -1,3 +1,17 @@
|
||||
# == 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
|
||||
|
Reference in New Issue
Block a user