Annotate models
This commit is contained in:
parent
2b920cd7b4
commit
a4edd3fd04
12 changed files with 42 additions and 14 deletions
|
@ -11,7 +11,9 @@
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_changeset_comments_on_created_at (created_at)
|
||||
# index_changeset_comments_on_author_id_and_created_at (author_id,created_at)
|
||||
# index_changeset_comments_on_changeset_id_and_created_at (changeset_id,created_at)
|
||||
# index_changeset_comments_on_created_at (created_at)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
# id :bigint(8) not null, primary key
|
||||
# user_id :bigint(8) not null
|
||||
# friend_user_id :bigint(8) not null
|
||||
# created_at :datetime
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# friends_user_id_idx (user_id)
|
||||
# user_id_idx (friend_user_id)
|
||||
# index_friends_on_user_id_and_created_at (user_id,created_at)
|
||||
# user_id_idx (friend_user_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_note_comments_on_body (to_tsvector('english'::regconfig, body)) USING gin
|
||||
# index_note_comments_on_created_at (created_at)
|
||||
# note_comments_note_id_idx (note_id)
|
||||
# index_note_comments_on_author_id_and_created_at (author_id,created_at)
|
||||
# index_note_comments_on_body (to_tsvector('english'::regconfig, body)) USING gin
|
||||
# index_note_comments_on_created_at (created_at)
|
||||
# note_comments_note_id_idx (note_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
|
|
|
@ -1,3 +1,28 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: oauth_applications
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# owner_type :string not null
|
||||
# owner_id :bigint(8) not null
|
||||
# name :string not null
|
||||
# uid :string not null
|
||||
# secret :string not null
|
||||
# redirect_uri :text not null
|
||||
# scopes :string default(""), not null
|
||||
# confidential :boolean default(TRUE), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_oauth_applications_on_owner_type_and_owner_id (owner_type,owner_id)
|
||||
# index_oauth_applications_on_uid (uid) UNIQUE
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
# fk_rails_... (owner_id => users.id)
|
||||
#
|
||||
class Oauth2Application < Doorkeeper::Application
|
||||
belongs_to :owner, :polymorphic => true
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: oauth_nonces
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# id :bigint(8) not null, primary key
|
||||
# nonce :string
|
||||
# timestamp :integer
|
||||
# created_at :datetime
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: relations
|
||||
#
|
||||
# relation_id :bigint(8) default(0), not null, primary key
|
||||
# relation_id :bigint(8) not null, primary key
|
||||
# changeset_id :bigint(8) not null
|
||||
# timestamp :datetime not null
|
||||
# version :bigint(8) not null, primary key
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: relation_members
|
||||
#
|
||||
# relation_id :bigint(8) default(0), not null, primary key
|
||||
# relation_id :bigint(8) not null, primary key
|
||||
# member_type :enum not null
|
||||
# member_id :bigint(8) not null
|
||||
# member_role :string not null
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: relation_tags
|
||||
#
|
||||
# relation_id :bigint(8) default(0), not null, primary key
|
||||
# relation_id :bigint(8) not null, primary key
|
||||
# k :string default(""), not null, primary key
|
||||
# v :string default(""), not null
|
||||
# version :bigint(8) not null, primary key
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: ways
|
||||
#
|
||||
# way_id :bigint(8) default(0), not null, primary key
|
||||
# way_id :bigint(8) not null, primary key
|
||||
# changeset_id :bigint(8) not null
|
||||
# timestamp :datetime not null
|
||||
# version :bigint(8) not null, primary key
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: way_tags
|
||||
#
|
||||
# way_id :bigint(8) default(0), not null, primary key
|
||||
# way_id :bigint(8) not null, primary key
|
||||
# k :string not null, primary key
|
||||
# v :string not null
|
||||
# version :bigint(8) not null, primary key
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Table name: gpx_file_tags
|
||||
#
|
||||
# gpx_id :bigint(8) default(0), not null
|
||||
# gpx_id :bigint(8) not null
|
||||
# tag :string not null
|
||||
# id :bigint(8) not null, primary key
|
||||
#
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
# home_lat :float
|
||||
# home_lon :float
|
||||
# home_zoom :integer default(3)
|
||||
# nearby :integer default(50)
|
||||
# pass_salt :string
|
||||
# email_valid :boolean default(FALSE), not null
|
||||
# new_email :string
|
||||
|
|
Loading…
Add table
Reference in a new issue