rename table, add fields to link table
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
class RenameCodeHarborLinksToCodeharborLinks < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_table :code_harbor_links, :codeharbor_links
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
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
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2019_02_13_131802) do
|
||||
ActiveRecord::Schema.define(version: 2019_08_18_104954) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@ -28,12 +28,15 @@ ActiveRecord::Schema.define(version: 2019_02_13_131802) do
|
||||
t.index ["user_type", "user_id"], name: "index_anomaly_notifications_on_user_type_and_user_id"
|
||||
end
|
||||
|
||||
create_table "code_harbor_links", force: :cascade do |t|
|
||||
create_table "codeharbor_links", force: :cascade do |t|
|
||||
t.string "oauth2token", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "user_id"
|
||||
t.index ["user_id"], name: "index_code_harbor_links_on_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
|
||||
|
||||
create_table "comments", force: :cascade do |t|
|
||||
|
Reference in New Issue
Block a user