add uuid check

This commit is contained in:
Karol
2019-10-16 19:19:28 +02:00
parent 9c009ee4ec
commit 4ab78c170e
14 changed files with 155 additions and 14 deletions

View File

@ -1,7 +0,0 @@
class AddPushUrlClientIdClientSecretToCodeharborLinks < ActiveRecord::Migration[5.2]
def change
add_column :codeharbor_links, :push_url, :string
add_column :codeharbor_links, :client_id, :string
add_column :codeharbor_links, :client_secret, :string
end
end

View File

@ -0,0 +1,6 @@
class AddPushUrlRenameOauth2tokenInCodeharborLinks < ActiveRecord::Migration[5.2]
def change
add_column :codeharbor_links, :push_url, :string
rename_column :codeharbor_links, :oauth2token, :api_key
end
end

View File

@ -29,13 +29,11 @@ ActiveRecord::Schema.define(version: 2019_10_08_163045) do
end
create_table "codeharbor_links", force: :cascade do |t|
t.string "oauth2token", limit: 255
t.string "api_key", limit: 255
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id"
t.string "push_url"
t.string "client_id"
t.string "client_secret"
t.index ["user_id"], name: "index_codeharbor_links_on_user_id"
end