diff --git a/db/migrate/20190818104802_rename_code_harbor_links_to_codeharbor_links.rb b/db/migrate/20190818104802_rename_code_harbor_links_to_codeharbor_links.rb new file mode 100644 index 00000000..5c7ba063 --- /dev/null +++ b/db/migrate/20190818104802_rename_code_harbor_links_to_codeharbor_links.rb @@ -0,0 +1,5 @@ +class RenameCodeHarborLinksToCodeharborLinks < ActiveRecord::Migration[5.2] + def change + rename_table :code_harbor_links, :codeharbor_links + end +end diff --git a/db/migrate/20190818104954_add_push_url_client_id_client_secret_to_codeharbor_links.rb b/db/migrate/20190818104954_add_push_url_client_id_client_secret_to_codeharbor_links.rb new file mode 100644 index 00000000..9d041be6 --- /dev/null +++ b/db/migrate/20190818104954_add_push_url_client_id_client_secret_to_codeharbor_links.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index feb96e00..ec6a7366 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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|