Commit f68764a105db69e9f4e0b4d821aa631854b8b512
1 parent
049db1a4
Exists in
master
and in
29 other branches
Converting article's published_at to datetime
Showing
2 changed files
with
150 additions
and
11 deletions
Show diff stats
db/migrate/20130605135210_change_article_published_at_from_date_to_datetime.rb
0 → 100644
db/schema.rb
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | # | 9 | # |
10 | # It's strongly recommended to check this file into your version control system. | 10 | # It's strongly recommended to check this file into your version control system. |
11 | 11 | ||
12 | -ActiveRecord::Schema.define(:version => 20130429214630) do | 12 | +ActiveRecord::Schema.define(:version => 20130605135210) do |
13 | 13 | ||
14 | create_table "abuse_reports", :force => true do |t| | 14 | create_table "abuse_reports", :force => true do |t| |
15 | t.integer "reporter_id" | 15 | t.integer "reporter_id" |
@@ -119,7 +119,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -119,7 +119,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
119 | t.text "setting" | 119 | t.text "setting" |
120 | t.boolean "notify_comments", :default => true | 120 | t.boolean "notify_comments", :default => true |
121 | t.integer "hits", :default => 0 | 121 | t.integer "hits", :default => 0 |
122 | - t.date "published_at" | 122 | + t.datetime "published_at" |
123 | t.string "source" | 123 | t.string "source" |
124 | t.boolean "highlighted", :default => false | 124 | t.boolean "highlighted", :default => false |
125 | t.string "external_link" | 125 | t.string "external_link" |
@@ -171,6 +171,36 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -171,6 +171,36 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
171 | 171 | ||
172 | add_index "boxes", ["owner_id", "owner_type"], :name => "index_boxes_on_owner_type_and_owner_id" | 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 | + | ||
174 | create_table "categories", :force => true do |t| | 204 | create_table "categories", :force => true do |t| |
175 | t.string "name" | 205 | t.string "name" |
176 | t.string "slug" | 206 | t.string "slug" |
@@ -221,6 +251,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -221,6 +251,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
221 | t.string "source_type" | 251 | t.string "source_type" |
222 | t.string "user_agent" | 252 | t.string "user_agent" |
223 | t.string "referrer" | 253 | t.string "referrer" |
254 | + t.integer "group_id" | ||
224 | end | 255 | end |
225 | 256 | ||
226 | add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" | 257 | add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" |
@@ -233,6 +264,49 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -233,6 +264,49 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
233 | t.datetime "updated_at" | 264 | t.datetime "updated_at" |
234 | end | 265 | end |
235 | 266 | ||
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 | + | ||
236 | create_table "delayed_jobs", :force => true do |t| | 310 | create_table "delayed_jobs", :force => true do |t| |
237 | t.integer "priority", :default => 0 | 311 | t.integer "priority", :default => 0 |
238 | t.integer "attempts", :default => 0 | 312 | t.integer "attempts", :default => 0 |
@@ -264,11 +338,11 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -264,11 +338,11 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
264 | t.text "design_data" | 338 | t.text "design_data" |
265 | t.text "custom_header" | 339 | t.text "custom_header" |
266 | t.text "custom_footer" | 340 | t.text "custom_footer" |
267 | - t.string "theme", :default => "default", :null => false | 341 | + t.string "theme", :default => "default", :null => false |
268 | t.text "terms_of_use_acceptance_text" | 342 | t.text "terms_of_use_acceptance_text" |
269 | t.datetime "created_at" | 343 | t.datetime "created_at" |
270 | t.datetime "updated_at" | 344 | t.datetime "updated_at" |
271 | - t.integer "reports_lower_bound", :default => 0, :null => false | 345 | + t.integer "reports_lower_bound", :default => 0, :null => false |
272 | t.string "redirection_after_login", :default => "keep_on_same_page" | 346 | t.string "redirection_after_login", :default => "keep_on_same_page" |
273 | t.text "signup_welcome_text" | 347 | t.text "signup_welcome_text" |
274 | t.string "languages" | 348 | t.string "languages" |
@@ -297,6 +371,10 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -297,6 +371,10 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
297 | t.integer "enterprise_id" | 371 | t.integer "enterprise_id" |
298 | end | 372 | end |
299 | 373 | ||
374 | + create_table "foo_plugin_bars", :force => true do |t| | ||
375 | + t.string "name" | ||
376 | + end | ||
377 | + | ||
300 | create_table "friendships", :force => true do |t| | 378 | create_table "friendships", :force => true do |t| |
301 | t.integer "person_id" | 379 | t.integer "person_id" |
302 | t.integer "friend_id" | 380 | t.integer "friend_id" |
@@ -428,7 +506,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -428,7 +506,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
428 | t.string "type" | 506 | t.string "type" |
429 | t.string "identifier" | 507 | t.string "identifier" |
430 | t.integer "environment_id" | 508 | t.integer "environment_id" |
431 | - t.boolean "active", :default => true | 509 | + t.boolean "active", :default => true |
432 | t.string "address" | 510 | t.string "address" |
433 | t.string "contact_phone" | 511 | t.string "contact_phone" |
434 | t.integer "home_page_id" | 512 | t.integer "home_page_id" |
@@ -439,21 +517,21 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -439,21 +517,21 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
439 | t.float "lat" | 517 | t.float "lat" |
440 | t.float "lng" | 518 | t.float "lng" |
441 | t.integer "geocode_precision" | 519 | t.integer "geocode_precision" |
442 | - t.boolean "enabled", :default => true | ||
443 | - t.string "nickname", :limit => 16 | 520 | + t.boolean "enabled", :default => true |
521 | + t.string "nickname", :limit => 16 | ||
444 | t.text "custom_header" | 522 | t.text "custom_header" |
445 | t.text "custom_footer" | 523 | t.text "custom_footer" |
446 | t.string "theme" | 524 | t.string "theme" |
447 | - t.boolean "public_profile", :default => true | 525 | + t.boolean "public_profile", :default => true |
448 | t.date "birth_date" | 526 | t.date "birth_date" |
449 | t.integer "preferred_domain_id" | 527 | t.integer "preferred_domain_id" |
450 | t.datetime "updated_at" | 528 | t.datetime "updated_at" |
451 | - t.boolean "visible", :default => true | 529 | + t.boolean "visible", :default => true |
452 | t.integer "image_id" | 530 | t.integer "image_id" |
453 | - t.boolean "validated", :default => true | 531 | + t.boolean "validated", :default => true |
454 | t.string "cnpj" | 532 | t.string "cnpj" |
455 | t.string "national_region_code" | 533 | t.string "national_region_code" |
456 | - t.boolean "is_template", :default => false | 534 | + t.boolean "is_template", :default => false |
457 | t.integer "template_id" | 535 | t.integer "template_id" |
458 | t.string "redirection_after_login" | 536 | t.string "redirection_after_login" |
459 | end | 537 | end |
@@ -519,6 +597,45 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -519,6 +597,45 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
519 | t.datetime "updated_at" | 597 | t.datetime "updated_at" |
520 | end | 598 | end |
521 | 599 | ||
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 | + | ||
522 | create_table "taggings", :force => true do |t| | 639 | create_table "taggings", :force => true do |t| |
523 | t.integer "tag_id" | 640 | t.integer "tag_id" |
524 | t.integer "taggable_id" | 641 | t.integer "taggable_id" |
@@ -558,6 +675,19 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | @@ -558,6 +675,19 @@ ActiveRecord::Schema.define(:version => 20130429214630) do | ||
558 | t.string "thumbnail" | 675 | t.string "thumbnail" |
559 | end | 676 | end |
560 | 677 | ||
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 | + | ||
561 | create_table "units", :force => true do |t| | 691 | create_table "units", :force => true do |t| |
562 | t.string "singular", :null => false | 692 | t.string "singular", :null => false |
563 | t.string "plural", :null => false | 693 | t.string "plural", :null => false |