Commit 201d489780de36eeb8e1826bbb7d1ebd8a64959b
1 parent
f4912e04
Exists in
master
and in
4 other branches
Annotate
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
9 changed files
with
53 additions
and
2 deletions
Show diff stats
app/models/broadcast_message.rb
| 1 | +# == Schema Information | |
| 2 | +# | |
| 3 | +# Table name: broadcast_messages | |
| 4 | +# | |
| 5 | +# id :integer not null, primary key | |
| 6 | +# message :text default(""), not null | |
| 7 | +# starts_at :datetime | |
| 8 | +# ends_at :datetime | |
| 9 | +# alert_type :integer | |
| 10 | +# created_at :datetime not null | |
| 11 | +# updated_at :datetime not null | |
| 12 | +# | |
| 13 | + | |
| 1 | 14 | class BroadcastMessage < ActiveRecord::Base |
| 2 | 15 | attr_accessible :alert_type, :ends_at, :message, :starts_at |
| 3 | 16 | ... | ... |
app/models/flowdock_service.rb
app/models/project.rb
| ... | ... | @@ -9,7 +9,6 @@ |
| 9 | 9 | # created_at :datetime not null |
| 10 | 10 | # updated_at :datetime not null |
| 11 | 11 | # creator_id :integer |
| 12 | -# default_branch :string(255) | |
| 13 | 12 | # issues_enabled :boolean default(TRUE), not null |
| 14 | 13 | # wall_enabled :boolean default(TRUE), not null |
| 15 | 14 | # merge_requests_enabled :boolean default(TRUE), not null | ... | ... |
app/models/user.rb
| ... | ... | @@ -36,6 +36,11 @@ |
| 36 | 36 | # notification_level :integer default(1), not null |
| 37 | 37 | # password_expires_at :datetime |
| 38 | 38 | # created_by_id :integer |
| 39 | +# avatar :string(255) | |
| 40 | +# confirmation_token :string(255) | |
| 41 | +# confirmed_at :datetime | |
| 42 | +# confirmation_sent_at :datetime | |
| 43 | +# unconfirmed_email :string(255) | |
| 39 | 44 | # |
| 40 | 45 | |
| 41 | 46 | require 'carrierwave/orm/activerecord' | ... | ... |
spec/factories/broadcast_messages.rb
| 1 | +# == Schema Information | |
| 2 | +# | |
| 3 | +# Table name: broadcast_messages | |
| 4 | +# | |
| 5 | +# id :integer not null, primary key | |
| 6 | +# message :text default(""), not null | |
| 7 | +# starts_at :datetime | |
| 8 | +# ends_at :datetime | |
| 9 | +# alert_type :integer | |
| 10 | +# created_at :datetime not null | |
| 11 | +# updated_at :datetime not null | |
| 12 | +# | |
| 13 | + | |
| 1 | 14 | # Read about factories at https://github.com/thoughtbot/factory_girl |
| 2 | 15 | |
| 3 | 16 | FactoryGirl.define do | ... | ... |
spec/models/broadcast_message_spec.rb
| 1 | +# == Schema Information | |
| 2 | +# | |
| 3 | +# Table name: broadcast_messages | |
| 4 | +# | |
| 5 | +# id :integer not null, primary key | |
| 6 | +# message :text default(""), not null | |
| 7 | +# starts_at :datetime | |
| 8 | +# ends_at :datetime | |
| 9 | +# alert_type :integer | |
| 10 | +# created_at :datetime not null | |
| 11 | +# updated_at :datetime not null | |
| 12 | +# | |
| 13 | + | |
| 1 | 14 | require 'spec_helper' |
| 2 | 15 | |
| 3 | 16 | describe BroadcastMessage do | ... | ... |
spec/models/flowdock_service_spec.rb
spec/models/project_spec.rb
| ... | ... | @@ -9,7 +9,6 @@ |
| 9 | 9 | # created_at :datetime not null |
| 10 | 10 | # updated_at :datetime not null |
| 11 | 11 | # creator_id :integer |
| 12 | -# default_branch :string(255) | |
| 13 | 12 | # issues_enabled :boolean default(TRUE), not null |
| 14 | 13 | # wall_enabled :boolean default(TRUE), not null |
| 15 | 14 | # merge_requests_enabled :boolean default(TRUE), not null | ... | ... |
spec/models/user_spec.rb
| ... | ... | @@ -36,6 +36,11 @@ |
| 36 | 36 | # notification_level :integer default(1), not null |
| 37 | 37 | # password_expires_at :datetime |
| 38 | 38 | # created_by_id :integer |
| 39 | +# avatar :string(255) | |
| 40 | +# confirmation_token :string(255) | |
| 41 | +# confirmed_at :datetime | |
| 42 | +# confirmation_sent_at :datetime | |
| 43 | +# unconfirmed_email :string(255) | |
| 39 | 44 | # |
| 40 | 45 | |
| 41 | 46 | require 'spec_helper' | ... | ... |