repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/actions/sso/sync_teams.rb
app/actions/sso/sync_teams.rb
class SSO::SyncTeams extend LightService::Action expects :user, :teams, :account promises :team_memberships executed do |context| user = context.user account = context.account remote_teams = context.teams # Add user to teams from remote source context.team_memberships = remote_teams.map do...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/actions/sso/create_teams_in_account.rb
app/actions/sso/create_teams_in_account.rb
class SSO::CreateTeamsInAccount extend LightService::Action expects :account, :team_names promises :teams executed do |context| context.teams = context.team_names.map do |team_hash| context.account.teams.find_or_create_by!(name: team_hash[:name]) end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/provider.rb
app/models/provider.rb
# == Schema Information # # Table name: providers # # id :bigint not null, primary key # access_token :string # access_token_secret :string # auth :text # expires_at :datetime # last_used_at :datetime # provider :string # refresh_token ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/project_fork.rb
app/models/project_fork.rb
# == Schema Information # # Table name: project_forks # # id :bigint not null, primary key # number :string not null # title :string not null # url :string not null # user :string not null # created_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/build_configuration.rb
app/models/build_configuration.rb
# == Schema Information # # Table name: build_configurations # # id :bigint not null, primary key # build_type :integer not null # buildpack_base_builder :string # context_directory :string default("./"), not null # dockerfile_path :string ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/account_user.rb
app/models/account_user.rb
# == Schema Information # # Table name: account_users # # id :bigint not null, primary key # role :integer default("member"), not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # user_id :bigint ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/project_credential_provider.rb
app/models/project_credential_provider.rb
# == Schema Information # # Table name: project_credential_providers # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # project_id :bigint not null # provider_id :bigint not null # # Indexes # # idx_on_pr...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/add_on.rb
app/models/add_on.rb
# == Schema Information # # Table name: add_ons # # id :bigint not null, primary key # chart_type :string not null # chart_url :string # managed_namespace :boolean default(TRUE) # metadata :jsonb # name :string not null # ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/cluster.rb
app/models/cluster.rb
# == Schema Information # # Table name: clusters # # id :bigint not null, primary key # cluster_type :integer default("k8s") # kubeconfig :jsonb # name :string not null # options :jsonb not null # status :integer default("initializing...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/event.rb
app/models/event.rb
# == Schema Information # # Table name: events # # id :bigint not null, primary key # event_action :integer not null # eventable_type :string not null # created_at :datetime not null # updated_at :datetime not null # eventable_id :bigint ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/project.rb
app/models/project.rb
# == Schema Information # # Table name: projects # # id :bigint not null, primary key # autodeploy :boolean default(TRUE), not null # branch :string default("main"), not null # canine_config :jsonb ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/team_resource.rb
app/models/team_resource.rb
# == Schema Information # # Table name: team_resources # # id :bigint not null, primary key # resourceable_type :string not null # created_at :datetime not null # updated_at :datetime not null # resourceable_id :bigint not null # team_id...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/log_output.rb
app/models/log_output.rb
# == Schema Information # # Table name: log_outputs # # id :bigint not null, primary key # loggable_type :string not null # output :text # created_at :datetime not null # updated_at :datetime not null # loggable_id :bigint not null # class Lo...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/saml_configuration.rb
app/models/saml_configuration.rb
# == Schema Information # # Table name: saml_configurations # # id :bigint not null, primary key # authn_requests_signed :boolean default(FALSE) # email_attribute :string default("email") # groups_attribute :string # idp_cert :text ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/build.rb
app/models/build.rb
# == Schema Information # # Table name: builds # # id :bigint not null, primary key # commit_message :string # commit_sha :string not null # git_sha :string # repository_url :string # status :integer default("in_progress") # created_at :datetime ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/account.rb
app/models/account.rb
# == Schema Information # # Table name: accounts # # id :bigint not null, primary key # name :string not null # slug :string not null # created_at :datetime not null # updated_at :datetime not null # owner_id :bigint # # Indexes # # index_accoun...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/sso_provider.rb
app/models/sso_provider.rb
# == Schema Information # # Table name: sso_providers # # id :bigint not null, primary key # configuration_type :string not null # enabled :boolean default(TRUE), not null # name :string not null # team_provisioning_mod...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/api_token.rb
app/models/api_token.rb
# == Schema Information # # Table name: api_tokens # # id :bigint not null, primary key # access_token :string not null # expires_at :datetime # last_used_at :datetime # name :string not null # created_at :datetime not null # updated_at :datetime ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/domain.rb
app/models/domain.rb
# == Schema Information # # Table name: domains # # id :bigint not null, primary key # domain_name :string not null # status :integer default("checking_dns") # status_reason :string # created_at :datetime not null # updated_at :datetime not nu...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/resource_constraint.rb
app/models/resource_constraint.rb
# == Schema Information # # Table name: resource_constraints # # id :bigint not null, primary key # cpu_limit :bigint # cpu_request :bigint # gpu_request :integer # memory_limit :bigint # memory_request :bigint # created_at :datetime not null # updated_at :date...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/stack_manager.rb
app/models/stack_manager.rb
# == Schema Information # # Table name: stack_managers # # id :bigint not null, primary key # access_token :string # enable_role_based_access_control :boolean default(TRUE) # provider_url :string not null # stack_man...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/favorite.rb
app/models/favorite.rb
# == Schema Information # # Table name: favorites # # id :bigint not null, primary key # favoriteable_type :string not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # favoriteable...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/volume.rb
app/models/volume.rb
# == Schema Information # # Table name: volumes # # id :bigint not null, primary key # access_mode :integer default("read_write_once") # mount_path :string default("/volumes/data"), not null # name :string not null # size :string default("10G...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/application_record.rb
app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base include ActionView::RecordIdentifier primary_abstract_class end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/inbound_webhook.rb
app/models/inbound_webhook.rb
# == Schema Information # # Table name: inbound_webhooks # # id :bigint not null, primary key # body :text # status :integer default("pending") # created_at :datetime not null # updated_at :datetime not null # class InboundWebhook < ApplicationRecord cattr_acc...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/project_add_on.rb
app/models/project_add_on.rb
# == Schema Information # # Table name: project_add_ons # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # add_on_id :bigint not null # project_id :bigint not null # # Indexes # # index_project_add_ons_on_ad...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/ldap_configuration.rb
app/models/ldap_configuration.rb
# == 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_attribut...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/team_membership.rb
app/models/team_membership.rb
# == Schema Information # # Table name: team_memberships # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # team_id :bigint not null # user_id :bigint not null # # Indexes # # index_team_memberships_on_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/team.rb
app/models/team.rb
# == Schema Information # # Table name: teams # # id :bigint not null, primary key # name :string not null # slug :string not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # # Indexes #...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/service.rb
app/models/service.rb
# == Schema Information # # Table name: services # # id :bigint not null, primary key # allow_public_networking :boolean default(FALSE) # command :string # container_port :integer default(3000) # description :text # healthcheck_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/build_pack.rb
app/models/build_pack.rb
# == Schema Information # # Table name: build_packs # # id :bigint not null, primary key # build_order :integer not null # details :jsonb # name :string # namespace :string # reference_type :integer no...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/cron_schedule.rb
app/models/cron_schedule.rb
# == Schema Information # # Table name: cron_schedules # # id :bigint not null, primary key # schedule :string not null # service_id :bigint not null # # Indexes # # index_cron_schedules_on_service_id (service_id) # # Foreign Keys # # fk_rails_... (service_id => services.i...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/deployment.rb
app/models/deployment.rb
# == Schema Information # # Table name: deployments # # id :bigint not null, primary key # manifests :jsonb # status :integer default("in_progress"), not null # created_at :datetime not null # updated_at :datetime not null # build_id :bigint not null # #...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/build_cloud.rb
app/models/build_cloud.rb
# == Schema Information # # Table name: build_clouds # # id :bigint not null, primary key # cpu_limits :bigint default(2000) # cpu_requests :bigint default(500) # driver_version :string # error_message :text # installation_metadat...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/metric.rb
app/models/metric.rb
# == Schema Information # # Table name: metrics # # id :bigint not null, primary key # metadata :jsonb not null # metric_type :integer default("cpu"), not null # tags :jsonb not null, is an Array # created_at :datetime not null # updated_at :da...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/environment_variable.rb
app/models/environment_variable.rb
# == Schema Information # # Table name: environment_variables # # id :bigint not null, primary key # name :string not null # storage_type :integer default("config"), not null # value :text # created_at :datetime not null # updated_at :datetime ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/announcement.rb
app/models/announcement.rb
# == Schema Information # # Table name: announcements # # id :bigint not null, primary key # announcement_type :string # description :text # name :string # published_at :datetime # created_at :datetime not null # updated_at :datetime ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/oidc_configuration.rb
app/models/oidc_configuration.rb
# == Schema Information # # Table name: oidc_configurations # # id :bigint not null, primary key # issuer :string not null # client_id :string not null # client_secret :string not null # authorization_endpoint :string...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/user.rb
app/models/user.rb
# == Schema Information # # Table name: users # # id :bigint not null, primary key # admin :boolean default(FALSE) # announcements_last_read_at :datetime # email :string default(""), not null # encrypted_password ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/concerns/team_accessible.rb
app/models/concerns/team_accessible.rb
# frozen_string_literal: true module TeamAccessible extend ActiveSupport::Concern included do has_many :team_resources, as: :resourceable, dependent: :destroy has_many :teams, through: :team_resources end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/concerns/namespaced.rb
app/models/concerns/namespaced.rb
module Namespaced def name_is_unique_to_cluster if cluster.namespaces.include?(namespace) errors.add(:name, "must be unique to this cluster") end end def self.included(base) base.class_eval do validates_presence_of :namespace validate :name_is_unique_to_cluster, on: :create end...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/models/concerns/favoriteable.rb
app/models/concerns/favoriteable.rb
# frozen_string_literal: true module Favoriteable extend ActiveSupport::Concern included do has_many :favorites, as: :favoriteable, dependent: :destroy end def favorited_by?(user, account) favorites.exists?(user: user, account: account) end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/pod_view_model.rb
app/view_models/pod_view_model.rb
class PodViewModel include Rails.application.routes.url_helpers attr_reader :parent, :pod def initialize(parent, pod) @parent = parent @pod = pod end def show_pod_logs_path if parent.is_a?(Project) project_process_path(parent, pod.metadata.name) elsif parent.is_a?(AddOn) add_on_p...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/base_view_model.rb
app/view_models/async/base_view_model.rb
class Async::BaseViewModel attr_accessor :current_user, :params def initialize(current_user, params) @current_user = current_user @params = params validate! end def name self.class.name.sub(/^Async::/, '').sub(/ViewModel$/, '') end def self.expects(*args) @expected_params ||= [] @...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/add_ons/metrics/show_view_model.rb
app/view_models/async/add_ons/metrics/show_view_model.rb
class Async::AddOns::Metrics::ShowViewModel < Async::BaseViewModel include NamespaceMetricsHelper expects :add_on_id def add_on @add_on ||= current_user.add_ons.find(params[:add_on_id]) end def initial_render render "shared/components/table_skeleton", locals: { columns: 3 } end def async_rende...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/add_ons/processes/pods_view_model.rb
app/view_models/async/add_ons/processes/pods_view_model.rb
class Async::AddOns::Processes::PodsViewModel < Async::BaseViewModel include LogColorsHelper expects :add_on_id def add_on @add_on ||= current_user.add_ons.find(params[:add_on_id]) end def pods @pods ||= begin client = K8::Client.new(K8::Connection.new(add_on.cluster, current_user)) clie...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/github/webhook_status_view_model.rb
app/view_models/async/github/webhook_status_view_model.rb
class Async::Github::WebhookStatusViewModel < Async::BaseViewModel expects :project_id def client @client ||= Git::Client.from_project(project) end def project @project ||= current_user.projects.find(params[:project_id]) end def initial_render "<div class='text-sm loading loading-spinner load...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/k8/configuration_view_model.rb
app/view_models/async/k8/configuration_view_model.rb
class Async::K8::ConfigurationViewModel < Async::BaseViewModel expects :cluster_id def version cluster = current_user.clusters.find(params[:cluster_id]) version ||= K8::Client.new(K8::Connection.new(cluster, current_user)).version['serverVersion']['gitVersion'] end def initial_render "<div class='...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/k8/nodes_view_model.rb
app/view_models/async/k8/nodes_view_model.rb
class Async::K8::NodesViewModel < Async::BaseViewModel include MetricsHelper include StorageHelper expects :cluster_id def cluster @cluster ||= current_user.clusters.find(params[:cluster_id]) end def nodes @nodes ||= K8::Metrics::Api::Node.ls(K8::Connection.new(cluster, current_user)) end def...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/k8/certificate_status_view_model.rb
app/view_models/async/k8/certificate_status_view_model.rb
class Async::K8::CertificateStatusViewModel < Async::BaseViewModel attr_reader :service expects :service_id def service @service ||= current_user.services.find(params[:service_id]) end def initial_render "<div class='flex items-center gap-2'>Certificate Status: <div class='loading loading-spinner lo...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/k8/cluster_ip_view_model.rb
app/view_models/async/k8/cluster_ip_view_model.rb
class Async::K8::ClusterIpViewModel < Async::BaseViewModel expects :service_id def service service ||= current_user.services.find(params[:service_id]) end def initial_render "<div class='loading loading-spinner loading-sm'></div>" end def async_render connection = K8::Connection.new(service.p...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/clusters/metrics/show_view_model.rb
app/view_models/async/clusters/metrics/show_view_model.rb
class Async::Clusters::Metrics::ShowViewModel < Async::BaseViewModel include MetricsHelper include StorageHelper expects :cluster_id def cluster @cluster ||= current_user.clusters.find(params[:cluster_id]) end def initial_render render "shared/components/table_skeleton", locals: { columns: 5 } ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/helm/values_yaml_view_model.rb
app/view_models/async/helm/values_yaml_view_model.rb
class Async::Helm::ValuesYamlViewModel < Async::BaseViewModel include AddOnsHelper expects :add_on_id def service @add_on ||= current_user.add_ons.find(params[:add_on_id]) connection = K8::Connection.new(@add_on, current_user) @service ||= K8::Helm::Service.new(connection) end def initial_render...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/helm/storage_view_model.rb
app/view_models/async/helm/storage_view_model.rb
class Async::Helm::StorageViewModel < Async::BaseViewModel attr_reader :add_on, :service expects :add_on_id def add_on @add_on ||= current_user.add_ons.find(params[:add_on_id]) end def service @service ||= K8::Helm::Service.new(K8::Connection.new(add_on, current_user)) end def initial_render ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/helm/version_view_model.rb
app/view_models/async/helm/version_view_model.rb
class Async::Helm::VersionViewModel < Async::BaseViewModel expects :add_on_id def service @add_on ||= current_user.add_ons.find(params[:add_on_id]) connection = K8::Connection.new(@add_on, current_user) @service ||= K8::Helm::Service.new(connection) end def initial_render render "shared/compon...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/projects/metrics/index_view_model.rb
app/view_models/async/projects/metrics/index_view_model.rb
class Async::Projects::Metrics::IndexViewModel < Async::BaseViewModel include NamespaceMetricsHelper expects :project_id def project @project ||= current_user.projects.find(params[:project_id]) end def initial_render render "shared/components/table_skeleton", locals: { columns: 3 } end def asy...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/view_models/async/projects/processes/index_view_model.rb
app/view_models/async/projects/processes/index_view_model.rb
class Async::Projects::Processes::IndexViewModel < Async::BaseViewModel expects :project_id def project @project ||= current_user.projects.find(params[:project_id]) end def initial_render render "shared/components/table_skeleton", locals: { columns: 4 } end def async_render render "processes/p...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/mailers/application_mailer.rb
app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: "from@example.com" layout "mailer" end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/channels/application_cable/channel.rb
app/channels/application_cable/channel.rb
module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/app/channels/application_cable/connection.rb
app/channels/application_cable/connection.rb
module ApplicationCable class Connection < ActionCable::Connection::Base identified_by :current_user, :true_user impersonates :user def connect self.current_user = find_verified_user logger.add_tags "ActionCable", "User #{current_user.id}" end protected def find_verified_user ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/seeds.rb
db/seeds.rb
# This file should ensure the existence of records required to run the application in every environment (production, # development, test). The code here should be idempotent so that it can be executed at any point in every environment. # The data can then be loaded with the bin/rails db:seed command (or created alongsi...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/schema.rb
db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251116091324_add_pod_yaml_to_services.rb
db/migrate/20251116091324_add_pod_yaml_to_services.rb
class AddPodYamlToServices < ActiveRecord::Migration[7.2] def change add_column :services, :pod_yaml, :jsonb end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250415222406_create_active_storage_variant_records.active_storage.rb
db/migrate/20250415222406_create_active_storage_variant_records.active_storage.rb
# This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) # Use Active Record's configured type for primary key create_table :active_storage_variant_records, i...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241126223100_create_active_admin_comments.rb
db/migrate/20241126223100_create_active_admin_comments.rb
class CreateActiveAdminComments < ActiveRecord::Migration[7.2] def self.up create_table :active_admin_comments do |t| t.string :namespace t.text :body t.references :resource, polymorphic: true t.references :author, polymorphic: true t.timestamps end add_index :active_admin_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925230423_create_inbound_webhooks.rb
db/migrate/20240925230423_create_inbound_webhooks.rb
class CreateInboundWebhooks < ActiveRecord::Migration[7.2] def change create_table :inbound_webhooks do |t| t.text :body t.integer :status, default: 0 t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212938_create_services.rb
db/migrate/20240925212938_create_services.rb
class CreateServices < ActiveRecord::Migration[7.2] def change create_table :services do |t| t.references :project, null: false, foreign_key: true t.integer :service_type, null: false t.string :command t.string :name, null: false t.integer :replicas, default: 1 t.string :health...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241223041419_add_values_to_add_ons.rb
db/migrate/20241223041419_add_values_to_add_ons.rb
class AddValuesToAddOns < ActiveRecord::Migration[7.2] def change add_column :add_ons, :values, :jsonb, default: {} end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241116095631_add_status_to_domains.rb
db/migrate/20241116095631_add_status_to_domains.rb
class AddStatusToDomains < ActiveRecord::Migration[7.2] def change add_column :domains, :status, :integer, default: 0 add_column :domains, :status_reason, :string end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251227185545_add_version_to_add_ons.rb
db/migrate/20251227185545_add_version_to_add_ons.rb
class AddVersionToAddOns < ActiveRecord::Migration[7.2] def up add_column :add_ons, :version, :string AddOn.find_each do |add_on| version = extract_version_from_metadata(add_on) || fetch_version_from_artifact_hub(add_on) if version.present? add_on.update_column(:version, version) e...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205204_create_active_storage_tables.active_storage.rb
db/migrate/20240925205204_create_active_storage_tables.active_storage.rb
# This migration comes from active_storage (originally 20170806125915) class CreateActiveStorageTables < ActiveRecord::Migration[7.0] def change # Use Active Record's configured type for primary and foreign keys primary_key_type, foreign_key_type = primary_and_foreign_key_types create_table :active_stora...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250415222407_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
db/migrate/20250415222407_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
# This migration comes from active_storage (originally 20211119233751) class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) change_column_null(:active_storage_blobs, :checksum, true) end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212703_create_clusters.rb
db/migrate/20240925212703_create_clusters.rb
class CreateClusters < ActiveRecord::Migration[7.2] def change create_table :clusters do |t| t.string :name, null: false t.jsonb :kubeconfig, null: false, default: {} t.references :account, null: false, foreign_key: true t.integer :status, null: false, default: 0 t.timestamps en...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250910043822_add_access_token_to_stack_manager.rb
db/migrate/20250910043822_add_access_token_to_stack_manager.rb
class AddAccessTokenToStackManager < ActiveRecord::Migration[7.2] def change add_column :stack_managers, :access_token, :string end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251009003742_enable_role_based_access_control_to_stack_managers.rb
db/migrate/20251009003742_enable_role_based_access_control_to_stack_managers.rb
class EnableRoleBasedAccessControlToStackManagers < ActiveRecord::Migration[7.2] def change add_column :stack_managers, :enable_role_based_access_control, :boolean, default: true end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250629164951_add_preview_project_settings_to_projects.rb
db/migrate/20250629164951_add_preview_project_settings_to_projects.rb
class AddPreviewProjectSettingsToProjects < ActiveRecord::Migration[7.2] def change add_column :projects, :project_fork_cluster_id, :bigint add_foreign_key :projects, :clusters, column: :project_fork_cluster_id add_column :projects, :project_fork_status, :integer, default: 0 end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205110_devise_create_users.rb
db/migrate/20240925205110_devise_create_users.rb
# frozen_string_literal: true class DeviseCreateUsers < ActiveRecord::Migration[7.2] def change create_table :users do |t| ## Database authenticatable t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.stri...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250625164120_create_project_forks.rb
db/migrate/20250625164120_create_project_forks.rb
class CreateProjectForks < ActiveRecord::Migration[7.2] def change create_table :project_forks do |t| t.references :child_project, null: false, foreign_key: { to_table: :projects }, index: { unique: true } t.references :parent_project, null: false, foreign_key: { to_table: :projects } t.string :...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250818215548_create_flipper_tables.rb
db/migrate/20250818215548_create_flipper_tables.rb
class CreateFlipperTables < ActiveRecord::Migration[7.2] def up create_table :flipper_features do |t| t.string :key, null: false t.timestamps null: false end add_index :flipper_features, :key, unique: true create_table :flipper_gates do |t| t.string :feature_key, null: false t...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251116041928_add_storage_type_to_environment_variables.rb
db/migrate/20251116041928_add_storage_type_to_environment_variables.rb
class AddStorageTypeToEnvironmentVariables < ActiveRecord::Migration[7.2] def change add_column :environment_variables, :storage_type, :integer, default: 0, null: false end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250414222529_drop_project_uniqueness.rb
db/migrate/20250414222529_drop_project_uniqueness.rb
class DropProjectUniqueness < ActiveRecord::Migration[7.2] def change remove_index :projects, :name end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251102192149_create_build_packs.rb
db/migrate/20251102192149_create_build_packs.rb
class CreateBuildPacks < ActiveRecord::Migration[7.2] def change create_table :build_packs do |t| t.references :build_configuration, null: false, foreign_key: true t.integer :reference_type, null: false # registry, docker, git, url, path t.string :namespace # for registry buildpacks t.stri...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205149_create_account_users.rb
db/migrate/20240925205149_create_account_users.rb
class CreateAccountUsers < ActiveRecord::Migration[7.2] def change create_table :account_users do |t| t.references :user, null: false, foreign_key: true t.references :account, null: false, foreign_key: true t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250122212220_add_chart_url_to_add_ons.rb
db/migrate/20250122212220_add_chart_url_to_add_ons.rb
class AddChartUrlToAddOns < ActiveRecord::Migration[7.2] def change add_column :add_ons, :chart_url, :string end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205151_create_friendly_id_slugs.rb
db/migrate/20240925205151_create_friendly_id_slugs.rb
MIGRATION_CLASS = if ActiveRecord::VERSION::MAJOR >= 5 ActiveRecord::Migration[5.2]["#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"] else ActiveRecord::Migration[5.2] end class CreateFriendlyIdSlugs < MIGRATION_CLASS def change create_table :friendly_id_slugs do |t| t.string...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212846_create_add_ons.rb
db/migrate/20240925212846_create_add_ons.rb
class CreateAddOns < ActiveRecord::Migration[7.2] def change create_table :add_ons do |t| t.references :cluster, null: false, foreign_key: true t.string :name, null: false t.string :chart_type, null: false t.integer :status, null: false, default: 0 t.jsonb :metadata, default: {} ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250904022903_add_unique_index_to_build_id.rb
db/migrate/20250904022903_add_unique_index_to_build_id.rb
class AddUniqueIndexToBuildId < ActiveRecord::Migration[7.2] def change remove_index :deployments, :build_id add_index :deployments, :build_id, unique: true end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251126014503_add_existing_namespace_to_projects.rb
db/migrate/20251126014503_add_existing_namespace_to_projects.rb
class AddExistingNamespaceToProjects < ActiveRecord::Migration[7.2] def change add_column :projects, :namespace, :string add_column :projects, :managed_namespace, :boolean, default: true Project.all.each do |project| project.namespace = project.name project.save! end change_column_nul...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925213906_create_domains.rb
db/migrate/20240925213906_create_domains.rb
class CreateDomains < ActiveRecord::Migration[7.2] def change create_table :domains do |t| t.references :service, null: false t.string :domain_name, null: false t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212839_create_log_outputs.rb
db/migrate/20240925212839_create_log_outputs.rb
class CreateLogOutputs < ActiveRecord::Migration[7.2] def change create_table :log_outputs do |t| t.bigint :loggable_id, null: false t.string :loggable_type, null: false t.text :output t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250901180141_add_container_registry_url_to_build_configurations.rb
db/migrate/20250901180141_add_container_registry_url_to_build_configurations.rb
class AddContainerRegistryUrlToBuildConfigurations < ActiveRecord::Migration[7.2] def change add_column :build_configurations, :image_repository, :string, null: false Project.all.each do |project| next if project.build_configuration.present? BuildConfiguration.create!( project: project, ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251110152900_create_resource_constraints.rb
db/migrate/20251110152900_create_resource_constraints.rb
class CreateResourceConstraints < ActiveRecord::Migration[7.2] def change create_table :resource_constraints do |t| t.references :service, null: false, index: true t.bigint :cpu_request t.bigint :cpu_limit t.bigint :memory_request t.bigint :memory_limit t.integer :gpu_request ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250729215525_add_registry_url_to_providers.rb
db/migrate/20250729215525_add_registry_url_to_providers.rb
class AddRegistryUrlToProviders < ActiveRecord::Migration[7.2] def change add_column :providers, :registry_url, :string end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251002214647_remove_uniqueness_from_external_id_on_providers.rb
db/migrate/20251002214647_remove_uniqueness_from_external_id_on_providers.rb
class RemoveUniquenessFromExternalIdOnProviders < ActiveRecord::Migration[7.2] def change remove_index :providers, :external_id end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212903_create_deployments.rb
db/migrate/20240925212903_create_deployments.rb
class CreateDeployments < ActiveRecord::Migration[7.2] def change create_table :deployments do |t| t.references :build, null: false, foreign_key: true t.integer :status, default: 0, null: false t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251212215414_add_sso_provider_to_providers.rb
db/migrate/20251212215414_add_sso_provider_to_providers.rb
class AddSSOProviderToProviders < ActiveRecord::Migration[7.2] def change add_reference :providers, :sso_provider, null: true, foreign_key: true add_index :providers, [ :sso_provider_id, :uid ], unique: true, where: "sso_provider_id IS NOT NULL" end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251224180944_create_favorites.rb
db/migrate/20251224180944_create_favorites.rb
class CreateFavorites < ActiveRecord::Migration[7.2] def change create_table :favorites do |t| t.references :user, null: false, foreign_key: true t.references :account, null: false, foreign_key: true t.references :favoriteable, polymorphic: true, null: false t.timestamps end add_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250102003342_add_container_registry_url_to_projects.rb
db/migrate/20250102003342_add_container_registry_url_to_projects.rb
class AddContainerRegistryUrlToProjects < ActiveRecord::Migration[7.2] def change add_column :projects, :container_registry_url, :string end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250902182502_kubeconfig_null_on_cluster.rb
db/migrate/20250902182502_kubeconfig_null_on_cluster.rb
class KubeconfigNullOnCluster < ActiveRecord::Migration[7.2] def change change_column_null :clusters, :kubeconfig, true add_column :clusters, :external_id, :string create_table :stack_managers do |t| t.string :provider_url, null: false t.integer :stack_manager_type, null: false, default: 0 ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205120_create_announcements.rb
db/migrate/20240925205120_create_announcements.rb
class CreateAnnouncements < ActiveRecord::Migration[7.2] def change create_table :announcements do |t| t.datetime :published_at t.string :announcement_type t.string :name t.text :description t.timestamps end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false