From 201d489780de36eeb8e1826bbb7d1ebd8a64959b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 13 Nov 2013 14:10:03 +0200 Subject: [PATCH] Annotate --- app/models/broadcast_message.rb | 13 +++++++++++++ app/models/flowdock_service.rb | 2 ++ app/models/project.rb | 1 - app/models/user.rb | 5 +++++ spec/factories/broadcast_messages.rb | 13 +++++++++++++ spec/models/broadcast_message_spec.rb | 13 +++++++++++++ spec/models/flowdock_service_spec.rb | 2 ++ spec/models/project_spec.rb | 1 - spec/models/user_spec.rb | 5 +++++ 9 files changed, 53 insertions(+), 2 deletions(-) diff --git a/app/models/broadcast_message.rb b/app/models/broadcast_message.rb index 5b0040f..a8b1db9 100644 --- a/app/models/broadcast_message.rb +++ b/app/models/broadcast_message.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: broadcast_messages +# +# id :integer not null, primary key +# message :text default(""), not null +# starts_at :datetime +# ends_at :datetime +# alert_type :integer +# created_at :datetime not null +# updated_at :datetime not null +# + class BroadcastMessage < ActiveRecord::Base attr_accessible :alert_type, :ends_at, :message, :starts_at diff --git a/app/models/flowdock_service.rb b/app/models/flowdock_service.rb index 6ec431d..f72d9fa 100644 --- a/app/models/flowdock_service.rb +++ b/app/models/flowdock_service.rb @@ -11,6 +11,8 @@ # updated_at :datetime not null # active :boolean default(FALSE), not null # project_url :string(255) +# subdomain :string(255) +# room :string(255) # require "flowdock-git-hook" diff --git a/app/models/project.rb b/app/models/project.rb index 73aa237..e255f13 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -9,7 +9,6 @@ # created_at :datetime not null # updated_at :datetime not null # creator_id :integer -# default_branch :string(255) # issues_enabled :boolean default(TRUE), not null # wall_enabled :boolean default(TRUE), not null # merge_requests_enabled :boolean default(TRUE), not null diff --git a/app/models/user.rb b/app/models/user.rb index ce8c88c..f522f91 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -36,6 +36,11 @@ # notification_level :integer default(1), not null # password_expires_at :datetime # created_by_id :integer +# avatar :string(255) +# confirmation_token :string(255) +# confirmed_at :datetime +# confirmation_sent_at :datetime +# unconfirmed_email :string(255) # require 'carrierwave/orm/activerecord' diff --git a/spec/factories/broadcast_messages.rb b/spec/factories/broadcast_messages.rb index 6b649af..84dea94 100644 --- a/spec/factories/broadcast_messages.rb +++ b/spec/factories/broadcast_messages.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: broadcast_messages +# +# id :integer not null, primary key +# message :text default(""), not null +# starts_at :datetime +# ends_at :datetime +# alert_type :integer +# created_at :datetime not null +# updated_at :datetime not null +# + # Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb index daaac73..998e89f 100644 --- a/spec/models/broadcast_message_spec.rb +++ b/spec/models/broadcast_message_spec.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: broadcast_messages +# +# id :integer not null, primary key +# message :text default(""), not null +# starts_at :datetime +# ends_at :datetime +# alert_type :integer +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe BroadcastMessage do diff --git a/spec/models/flowdock_service_spec.rb b/spec/models/flowdock_service_spec.rb index b22193c..636aba2 100644 --- a/spec/models/flowdock_service_spec.rb +++ b/spec/models/flowdock_service_spec.rb @@ -11,6 +11,8 @@ # updated_at :datetime not null # active :boolean default(FALSE), not null # project_url :string(255) +# subdomain :string(255) +# room :string(255) # require 'spec_helper' diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 88ea692..d5803d8 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -9,7 +9,6 @@ # created_at :datetime not null # updated_at :datetime not null # creator_id :integer -# default_branch :string(255) # issues_enabled :boolean default(TRUE), not null # wall_enabled :boolean default(TRUE), not null # merge_requests_enabled :boolean default(TRUE), not null diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 66493a8..8b9e0b3 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -36,6 +36,11 @@ # notification_level :integer default(1), not null # password_expires_at :datetime # created_by_id :integer +# avatar :string(255) +# confirmation_token :string(255) +# confirmed_at :datetime +# confirmation_sent_at :datetime +# unconfirmed_email :string(255) # require 'spec_helper' -- libgit2 0.21.2