mirror of
https://github.com/czhu12/canine.git
synced 2025-12-21 10:49:49 -06:00
34 lines
869 B
Ruby
34 lines
869 B
Ruby
# == 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 not null
|
|
# project_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_environment_variables_on_project_id (project_id)
|
|
# index_environment_variables_on_project_id_and_name (project_id,name) UNIQUE
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (project_id => projects.id)
|
|
#
|
|
FactoryBot.define do
|
|
factory :environment_variable do
|
|
project
|
|
sequence(:name) { |n| "EXAMPLE_VAR_#{n}" }
|
|
sequence(:value) { |n| "example_value_#{n}" }
|
|
storage_type { :config }
|
|
|
|
trait :secret do
|
|
storage_type { :secret }
|
|
end
|
|
end
|
|
end
|