Commit c50dc6454f6251c546fc0ff2f444468410b36830

Authored by Daniela Feitosa
1 parent e62afb3d

Converted article_versions published_at to datetime

article and article_versions fields type must be the same

also removed plugins tables from schema.rb

(ActionItem2685)
db/migrate/20130606110602_change_article_versions_published_at_from_date_to_datetime.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class ChangeArticleVersionsPublishedAtFromDateToDatetime < ActiveRecord::Migration
  2 + def self.up
  3 + change_column :article_versions, :published_at, :datetime
  4 + end
  5 +
  6 + def self.down
  7 + change_column :article_versions, :published_at, :date
  8 + end
  9 +end
... ...
db/schema.rb
... ... @@ -9,7 +9,7 @@
9 9 #
10 10 # It's strongly recommended to check this file into your version control system.
11 11  
12   -ActiveRecord::Schema.define(:version => 20130605135210) do
  12 +ActiveRecord::Schema.define(:version => 20130606110602) do
13 13  
14 14 create_table "abuse_reports", :force => true do |t|
15 15 t.integer "reporter_id"
... ... @@ -76,7 +76,7 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
76 76 t.text "setting"
77 77 t.boolean "notify_comments", :default => false
78 78 t.integer "hits", :default => 0
79   - t.date "published_at"
  79 + t.datetime "published_at"
80 80 t.string "source"
81 81 t.boolean "highlighted", :default => false
82 82 t.string "external_link"
... ... @@ -171,36 +171,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
171 171  
172 172 add_index "boxes", ["owner_id", "owner_type"], :name => "index_boxes_on_owner_type_and_owner_id"
173 173  
174   - create_table "bsc_plugin_contracts", :force => true do |t|
175   - t.string "client_name"
176   - t.integer "client_type"
177   - t.integer "business_type"
178   - t.string "state"
179   - t.string "city"
180   - t.integer "status", :default => 0
181   - t.integer "number_of_producers", :default => 0
182   - t.datetime "supply_start"
183   - t.datetime "supply_end"
184   - t.text "annotations"
185   - t.integer "bsc_id"
186   - t.datetime "created_at"
187   - t.datetime "updated_at"
188   - end
189   -
190   - create_table "bsc_plugin_contracts_enterprises", :id => false, :force => true do |t|
191   - t.integer "contract_id"
192   - t.integer "enterprise_id"
193   - end
194   -
195   - create_table "bsc_plugin_sales", :force => true do |t|
196   - t.integer "product_id", :null => false
197   - t.integer "contract_id", :null => false
198   - t.integer "quantity", :null => false
199   - t.decimal "price"
200   - t.datetime "created_at"
201   - t.datetime "updated_at"
202   - end
203   -
204 174 create_table "categories", :force => true do |t|
205 175 t.string "name"
206 176 t.string "slug"
... ... @@ -251,7 +221,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
251 221 t.string "source_type"
252 222 t.string "user_agent"
253 223 t.string "referrer"
254   - t.integer "group_id"
255 224 end
256 225  
257 226 add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam"
... ... @@ -264,49 +233,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
264 233 t.datetime "updated_at"
265 234 end
266 235  
267   - create_table "custom_forms_plugin_answers", :force => true do |t|
268   - t.text "value"
269   - t.integer "field_id"
270   - t.integer "submission_id"
271   - end
272   -
273   - create_table "custom_forms_plugin_fields", :force => true do |t|
274   - t.string "name"
275   - t.string "slug"
276   - t.string "type"
277   - t.string "default_value"
278   - t.string "choices"
279   - t.float "minimum"
280   - t.float "maximum"
281   - t.integer "form_id"
282   - t.boolean "mandatory", :default => false
283   - t.boolean "multiple"
284   - t.boolean "list"
285   - end
286   -
287   - create_table "custom_forms_plugin_forms", :force => true do |t|
288   - t.string "name"
289   - t.string "slug"
290   - t.text "description"
291   - t.integer "profile_id"
292   - t.datetime "begining"
293   - t.datetime "ending"
294   - t.boolean "report_submissions", :default => false
295   - t.boolean "on_membership", :default => false
296   - t.string "access"
297   - t.datetime "created_at"
298   - t.datetime "updated_at"
299   - end
300   -
301   - create_table "custom_forms_plugin_submissions", :force => true do |t|
302   - t.string "author_name"
303   - t.string "author_email"
304   - t.integer "profile_id"
305   - t.integer "form_id"
306   - t.datetime "created_at"
307   - t.datetime "updated_at"
308   - end
309   -
310 236 create_table "delayed_jobs", :force => true do |t|
311 237 t.integer "priority", :default => 0
312 238 t.integer "attempts", :default => 0
... ... @@ -371,10 +297,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
371 297 t.integer "enterprise_id"
372 298 end
373 299  
374   - create_table "foo_plugin_bars", :force => true do |t|
375   - t.string "name"
376   - end
377   -
378 300 create_table "friendships", :force => true do |t|
379 301 t.integer "person_id"
380 302 t.integer "friend_id"
... ... @@ -597,45 +519,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
597 519 t.datetime "updated_at"
598 520 end
599 521  
600   - create_table "shopping_cart_plugin_purchase_orders", :force => true do |t|
601   - t.integer "customer_id"
602   - t.integer "seller_id"
603   - t.text "data"
604   - t.integer "status"
605   - t.datetime "created_at"
606   - t.datetime "updated_at"
607   - end
608   -
609   - create_table "spaminator_plugin_reports", :force => true do |t|
610   - t.integer "spams_by_content", :default => 0
611   - t.integer "spams_by_no_network", :default => 0
612   - t.integer "spammers_by_comments", :default => 0
613   - t.integer "spammers_by_no_network", :default => 0
614   - t.integer "total_people", :default => 0
615   - t.integer "total_comments", :default => 0
616   - t.integer "processed_comments", :default => 0
617   - t.integer "processed_people", :default => 0
618   - t.integer "environment_id"
619   - t.text "failed"
620   - t.datetime "created_at"
621   - t.datetime "updated_at"
622   - end
623   -
624   - create_table "sub_organizations_plugin_approve_paternity_relations", :force => true do |t|
625   - t.integer "task_id"
626   - t.integer "parent_id"
627   - t.string "parent_type"
628   - t.integer "child_id"
629   - t.string "child_type"
630   - end
631   -
632   - create_table "sub_organizations_plugin_relations", :force => true do |t|
633   - t.integer "parent_id"
634   - t.string "parent_type"
635   - t.integer "child_id"
636   - t.string "child_type"
637   - end
638   -
639 522 create_table "taggings", :force => true do |t|
640 523 t.integer "tag_id"
641 524 t.integer "taggable_id"
... ... @@ -675,19 +558,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130605135210) do
675 558 t.string "thumbnail"
676 559 end
677 560  
678   - create_table "tolerance_time_plugin_publications", :force => true do |t|
679   - t.integer "target_id"
680   - t.string "target_type"
681   - t.datetime "created_at"
682   - t.datetime "updated_at"
683   - end
684   -
685   - create_table "tolerance_time_plugin_tolerances", :force => true do |t|
686   - t.integer "profile_id"
687   - t.integer "content_tolerance"
688   - t.integer "comment_tolerance"
689   - end
690   -
691 561 create_table "units", :force => true do |t|
692 562 t.string "singular", :null => false
693 563 t.string "plural", :null => false
... ...