diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 3ac3ae5f..08e456c6 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -1,6 +1,7 @@ class StaticController < ApplicationController INSTALL_SCRIPT = "curl -sSL https://raw.githubusercontent.com/CanineHQ/canine/refs/heads/main/install/install.sh | bash" skip_before_action :authenticate_user! + layout false, only: %i[docs swagger] ILLUSTRATIONS = [ { src: "/images/illustrations/design_2.webp", diff --git a/db/schema.rb b/db/schema.rb index 28f44636..d0ec0d99 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[7.2].define(version: 2025_12_12_215414) do +ActiveRecord::Schema[7.2].define(version: 2025_12_16_022149) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -19,6 +19,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_12_12_215414) do t.bigint "account_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.integer "role", default: 2, null: false t.index ["account_id"], name: "index_account_users_on_account_id" t.index ["user_id"], name: "index_account_users_on_user_id" end @@ -88,12 +89,13 @@ ActiveRecord::Schema[7.2].define(version: 2025_12_12_215414) do create_table "api_tokens", force: :cascade do |t| t.bigint "user_id", null: false + t.string "name", null: false t.string "access_token", null: false t.datetime "last_used_at" t.datetime "expires_at" - t.jsonb "scopes", default: [], null: false, array: true t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.index ["access_token"], name: "index_api_tokens_on_access_token", unique: true t.index ["user_id"], name: "index_api_tokens_on_user_id" end @@ -179,6 +181,14 @@ ActiveRecord::Schema[7.2].define(version: 2025_12_12_215414) do t.index ["service_id"], name: "index_cron_schedules_on_service_id" end + create_table "deployment_configurations", force: :cascade do |t| + t.bigint "project_id", null: false + t.integer "deployment_method", default: 0, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["project_id"], name: "index_deployment_configurations_on_project_id" + end + create_table "deployments", force: :cascade do |t| t.bigint "build_id", null: false t.integer "status", default: 0, null: false @@ -628,6 +638,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_12_12_215414) do add_foreign_key "builds", "projects" add_foreign_key "clusters", "accounts" add_foreign_key "cron_schedules", "services" + add_foreign_key "deployment_configurations", "projects" add_foreign_key "deployments", "builds" add_foreign_key "environment_variables", "projects" add_foreign_key "project_add_ons", "add_ons" diff --git a/spec/factories/api_tokens.rb b/spec/factories/api_tokens.rb index e2d64201..bed9e489 100644 --- a/spec/factories/api_tokens.rb +++ b/spec/factories/api_tokens.rb @@ -23,6 +23,7 @@ FactoryBot.define do factory :api_token do user + name { "API Token" } expires_at { nil } last_used_at { nil } end diff --git a/spec/models/ldap_configuration_spec.rb b/spec/models/ldap_configuration_spec.rb deleted file mode 100644 index 7563d88e..00000000 --- a/spec/models/ldap_configuration_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -# == Schema Information -# -# Table name: ldap_configurations -# -# id :bigint not null, primary key -# allow_anonymous_reads :boolean default(FALSE) -# base_dn :string not null -# bind_dn :string -# bind_password :string -# email_attribute :string default("mail") -# encryption :integer not null -# filter :string -# host :string not null -# name_attribute :string default("cn") -# port :integer default(389), not null -# uid_attribute :string default("uid"), not null -# created_at :datetime not null -# updated_at :datetime not null -# -require 'rails_helper' - -RSpec.describe LDAPConfiguration, type: :model do - pending "add some examples to (or delete) #{__FILE__}" -end