-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api][webui][ci] Token class now have subclasses
- Loading branch information
1 parent
a03c953
commit 300ff93
Showing
12 changed files
with
82 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Token::Rss < Token | ||
end | ||
|
||
# == Schema Information | ||
# | ||
# Table name: tokens | ||
# | ||
# id :integer not null, primary key | ||
# string :string(255) indexed | ||
# user_id :integer not null, indexed | ||
# package_id :integer indexed | ||
# type :string(255) | ||
# | ||
# Indexes | ||
# | ||
# index_tokens_on_string (string) UNIQUE | ||
# package_id (package_id) | ||
# user_id (user_id) | ||
# | ||
# Foreign Keys | ||
# | ||
# tokens_ibfk_1 (user_id => users.id) | ||
# tokens_ibfk_2 (package_id => packages.id) | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Token::Service < Token | ||
end | ||
|
||
# == Schema Information | ||
# | ||
# Table name: tokens | ||
# | ||
# id :integer not null, primary key | ||
# string :string(255) indexed | ||
# user_id :integer not null, indexed | ||
# package_id :integer indexed | ||
# type :string(255) | ||
# | ||
# Indexes | ||
# | ||
# index_tokens_on_string (string) UNIQUE | ||
# package_id (package_id) | ||
# user_id (user_id) | ||
# | ||
# Foreign Keys | ||
# | ||
# tokens_ibfk_1 (user_id => users.id) | ||
# tokens_ibfk_2 (package_id => packages.id) | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddStItoTokens < ActiveRecord::Migration[5.0] | ||
def change | ||
add_column :tokens, :type, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters