diff options
author | Drew Blessing <drew.blessing@me.com> | 2014-09-07 19:54:18 -0500 |
---|---|---|
committer | Drew Blessing <drew.blessing@me.com> | 2014-09-10 09:56:39 -0500 |
commit | a0dbcd2365b9c90892ccd0c5dfb18c7c58de8704 (patch) | |
tree | 09b0e5a4027cb9187d9f46f4cd6ff75ac64ea1e6 /app/models/project_services/gitlab_ci_service.rb | |
parent | f42a1ded99920998a9b63b309adc227485428d2c (diff) | |
download | gitlab-ce-a0dbcd2365b9c90892ccd0c5dfb18c7c58de8704.tar.gz |
Serialize services properties
Diffstat (limited to 'app/models/project_services/gitlab_ci_service.rb')
-rw-r--r-- | app/models/project_services/gitlab_ci_service.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/project_services/gitlab_ci_service.rb b/app/models/project_services/gitlab_ci_service.rb index 58ddce45288..0f327e75289 100644 --- a/app/models/project_services/gitlab_ci_service.rb +++ b/app/models/project_services/gitlab_ci_service.rb @@ -5,19 +5,15 @@ # id :integer not null, primary key # type :string(255) # title :string(255) -# token :string(255) # project_id :integer not null # created_at :datetime # updated_at :datetime # active :boolean default(FALSE), not null -# project_url :string(255) -# subdomain :string(255) -# room :string(255) -# recipients :text -# api_key :string(255) +# property :text # class GitlabCiService < CiService + prop_accessor :project_url, :token validates :project_url, presence: true, if: :activated? validates :token, presence: true, if: :activated? |