From 42da367967f810311e782e09bc0ce3c6efe64692 Mon Sep 17 00:00:00 2001 From: Philip Hale Date: Sun, 1 Sep 2013 01:16:03 +0100 Subject: [PATCH] [#18] Remove annotate_models generated Schema Information This rapidly becomes out of date and doesn't belong in the source. --- app/admin/articles.rb | 17 ----------------- app/admin/users.rb | 19 ------------------- app/models/article.rb | 30 ------------------------------ app/models/category.rb | 13 ------------- app/models/contact.rb | 16 ---------------- app/models/keyword.rb | 13 ------------- app/models/user.rb | 22 ---------------------- app/models/wordcount.rb | 12 ------------ spec/models/article_spec.rb | 27 --------------------------- spec/models/category_spec.rb | 13 ------------- spec/models/keyword_spec.rb | 13 ------------- spec/models/wordcount_spec.rb | 12 ------------ 12 files changed, 207 deletions(-) diff --git a/app/admin/articles.rb b/app/admin/articles.rb index 86f24300..ea0abe30 100644 --- a/app/admin/articles.rb +++ b/app/admin/articles.rb @@ -64,20 +64,3 @@ end end -# == Schema Information -# -# Table name: articles -# -# id :integer not null, primary key -# updated :datetime -# title :string(255) -# content :text -# created_at :datetime not null -# updated_at :datetime not null -# category :string(255) -# content_type :integer -# preview :text -# contact_id :integer -# tags :text -# service_url :string(255) -# \ No newline at end of file diff --git a/app/admin/users.rb b/app/admin/users.rb index 052179a9..f18d8c8d 100644 --- a/app/admin/users.rb +++ b/app/admin/users.rb @@ -50,22 +50,3 @@ end -# == Schema Information -# -# Table name: users -# -# id :integer not null, primary key -# email :string(255) default(""), not null -# encrypted_password :string(255) default(""), not null -# reset_password_token :string(255) -# reset_password_sent_at :datetime -# remember_created_at :datetime -# sign_in_count :integer default(0) -# current_sign_in_at :datetime -# last_sign_in_at :datetime -# current_sign_in_ip :string(255) -# last_sign_in_ip :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# admin :boolean -# diff --git a/app/models/article.rb b/app/models/article.rb index 7b4f56ae..0aa7f1ba 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -290,33 +290,3 @@ def qm_after_destroy handle_asynchronously :qm_after_destroy end - - - -# == Schema Information -# -# Table name: articles -# -# id :integer not null, primary key -# updated :datetime -# title :string(255) -# content :text -# created_at :datetime not null -# updated_at :datetime not null -# content_type :string(255) -# preview :text -# contact_id :integer -# tags :text -# service_url :string(255) -# is_published :boolean default(FALSE) -# slug :string(255) -# category_id :integer -# access_count :integer default(0) -# author_pic_file_name :string(255) -# author_pic_content_type :string(255) -# author_pic_file_size :integer -# author_pic_updated_at :datetime -# author_name :string(255) -# author_link :string(255) -# - diff --git a/app/models/category.rb b/app/models/category.rb index 1052ecb2..cf85ed85 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -17,16 +17,3 @@ def set_access_count_if_nil end end -# == Schema Information -# -# Table name: categories -# -# id :integer not null, primary key -# name :string(255) -# access_count :integer -# created_at :datetime not null -# updated_at :datetime not null -# article_id :integer -# description :text -# - diff --git a/app/models/contact.rb b/app/models/contact.rb index a69b5f62..f9a7ec52 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -4,19 +4,3 @@ class Contact < ActiveRecord::Base has_many :articles end -# == Schema Information -# -# Table name: contacts -# -# id :integer not null, primary key -# name :string(255) -# subname :string(255) -# number :string(255) -# url :string(255) -# address :string(255) -# department :string(255) -# description :text -# created_at :datetime not null -# updated_at :datetime not null -# - diff --git a/app/models/keyword.rb b/app/models/keyword.rb index 923e4694..6d463c08 100644 --- a/app/models/keyword.rb +++ b/app/models/keyword.rb @@ -27,16 +27,3 @@ def analyse end end -# == Schema Information -# -# Table name: keywords -# -# id :integer not null, primary key -# name :string(255) -# metaphone :string(255) -# stem :string(255) -# synonyms :text -# created_at :datetime not null -# updated_at :datetime not null -# - diff --git a/app/models/user.rb b/app/models/user.rb index f2431e0f..907eabaf 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -27,25 +27,3 @@ def make_roles_exclusive end end -# == Schema Information -# -# Table name: users -# -# id :integer not null, primary key -# email :string(255) default(""), not null -# encrypted_password :string(255) default(""), not null -# reset_password_token :string(255) -# reset_password_sent_at :datetime -# remember_created_at :datetime -# sign_in_count :integer default(0) -# current_sign_in_at :datetime -# last_sign_in_at :datetime -# current_sign_in_ip :string(255) -# last_sign_in_ip :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# is_moderator :boolean -# is_admin :boolean default(FALSE) -# is_editor :boolean default(FALSE) -# department_id - diff --git a/app/models/wordcount.rb b/app/models/wordcount.rb index d4090dc8..9e0a7d77 100644 --- a/app/models/wordcount.rb +++ b/app/models/wordcount.rb @@ -14,15 +14,3 @@ def set_count_if_nil end end -# == Schema Information -# -# Table name: wordcounts -# -# id :integer not null, primary key -# article_id :integer -# keyword_id :integer -# count :integer -# created_at :datetime not null -# updated_at :datetime not null -# - diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb index a84cbb56..af11e4b7 100644 --- a/spec/models/article_spec.rb +++ b/spec/models/article_spec.rb @@ -85,30 +85,3 @@ #end #end -# == Schema Information -# -# Table name: articles -# -# id :integer not null, primary key -# updated :datetime -# title :string(255) -# content :text -# created_at :datetime not null -# updated_at :datetime not null -# content_type :string(255) -# preview :text -# contact_id :integer -# tags :text -# service_url :string(255) -# is_published :boolean default(FALSE) -# slug :string(255) -# category_id :integer -# access_count :integer default(0) -# author_pic_file_name :string(255) -# author_pic_content_type :string(255) -# author_pic_file_size :integer -# author_pic_updated_at :datetime -# author_name :string(255) -# author_link :string(255) -# - diff --git a/spec/models/category_spec.rb b/spec/models/category_spec.rb index 52138adc..9a43b6eb 100644 --- a/spec/models/category_spec.rb +++ b/spec/models/category_spec.rb @@ -25,16 +25,3 @@ end -# == Schema Information -# -# Table name: categories -# -# id :integer not null, primary key -# name :string(255) -# access_count :integer -# created_at :datetime not null -# updated_at :datetime not null -# article_id :integer -# description :text -# - diff --git a/spec/models/keyword_spec.rb b/spec/models/keyword_spec.rb index 1803e6a1..4a22f86c 100644 --- a/spec/models/keyword_spec.rb +++ b/spec/models/keyword_spec.rb @@ -30,16 +30,3 @@ its(:synonyms) { should eq(["illustration", "instance", "representative", "model", "exemplar", "good example", "deterrent example", "lesson", "object lesson", "case", "exercise", "admonition", "happening", "ideal", "information", "internal representation", "mental representation", "monition", "natural event", "occurrence", "occurrent", "representation", "warning", "word of advice"]) } end end -# == Schema Information -# -# Table name: keywords -# -# id :integer not null, primary key -# name :string(255) -# metaphone :string(255) -# stem :string(255) -# synonyms :text -# created_at :datetime not null -# updated_at :datetime not null -# - diff --git a/spec/models/wordcount_spec.rb b/spec/models/wordcount_spec.rb index f4a7d834..2f1c6ffe 100644 --- a/spec/models/wordcount_spec.rb +++ b/spec/models/wordcount_spec.rb @@ -12,15 +12,3 @@ end -# == Schema Information -# -# Table name: wordcounts -# -# id :integer not null, primary key -# article_id :integer -# keyword_id :integer -# count :integer -# created_at :datetime not null -# updated_at :datetime not null -# -