Annotations (#327)

* Add annotate gem to the project
* Annotate models, fixtures, factories and model_specs
* Keep annotations only in Models
* Remove unwanted changes in model specs
* Exclude auto_annotate_models from rubocop
This commit is contained in:
Mukesh Chaudhary
2019-11-30 19:09:55 +05:30
committed by Sojan Jose
parent 60e96f446e
commit c08074b981
18 changed files with 335 additions and 0 deletions

View File

@@ -1,3 +1,22 @@
# == Schema Information
#
# Table name: channel_facebook_pages
#
# id :integer not null, primary key
# avatar :string
# name :string not null
# page_access_token :string not null
# user_access_token :string not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer not null
# page_id :string not null
#
# Indexes
#
# index_channel_facebook_pages_on_page_id (page_id)
#
module Channel
class FacebookPage < ApplicationRecord
self.table_name = 'channel_facebook_pages'

View File

@@ -1,3 +1,21 @@
# == Schema Information
#
# Table name: channel_web_widgets
#
# id :integer not null, primary key
# website_name :string
# website_token :string
# website_url :string
# widget_color :string default("#1f93ff")
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer
#
# Indexes
#
# index_channel_web_widgets_on_website_token (website_token) UNIQUE
#
module Channel
class WebWidget < ApplicationRecord
self.table_name = 'channel_web_widgets'