Annotate
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
f4912e04fd
commit
201d489780
|
@ -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
|
class BroadcastMessage < ActiveRecord::Base
|
||||||
attr_accessible :alert_type, :ends_at, :message, :starts_at
|
attr_accessible :alert_type, :ends_at, :message, :starts_at
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
|
# subdomain :string(255)
|
||||||
|
# room :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require "flowdock-git-hook"
|
require "flowdock-git-hook"
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# default_branch :string(255)
|
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
# wall_enabled :boolean default(TRUE), not null
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
# merge_requests_enabled :boolean default(TRUE), not null
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
# notification_level :integer default(1), not null
|
# notification_level :integer default(1), not null
|
||||||
# password_expires_at :datetime
|
# password_expires_at :datetime
|
||||||
# created_by_id :integer
|
# 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'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
|
@ -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
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
|
|
|
@ -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'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe BroadcastMessage do
|
describe BroadcastMessage do
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# project_url :string(255)
|
# project_url :string(255)
|
||||||
|
# subdomain :string(255)
|
||||||
|
# room :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# default_branch :string(255)
|
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
# wall_enabled :boolean default(TRUE), not null
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
# merge_requests_enabled :boolean default(TRUE), not null
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
# notification_level :integer default(1), not null
|
# notification_level :integer default(1), not null
|
||||||
# password_expires_at :datetime
|
# password_expires_at :datetime
|
||||||
# created_by_id :integer
|
# 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'
|
require 'spec_helper'
|
||||||
|
|
Loading…
Reference in New Issue