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 | 9 | # |
10 | 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 | 14 | create_table "abuse_reports", :force => true do |t| |
15 | 15 | t.integer "reporter_id" |
... | ... | @@ -119,7 +119,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
119 | 119 | t.text "setting" |
120 | 120 | t.boolean "notify_comments", :default => true |
121 | 121 | t.integer "hits", :default => 0 |
122 | - t.date "published_at" | |
122 | + t.datetime "published_at" | |
123 | 123 | t.string "source" |
124 | 124 | t.boolean "highlighted", :default => false |
125 | 125 | t.string "external_link" |
... | ... | @@ -171,6 +171,36 @@ ActiveRecord::Schema.define(:version => 20130429214630) 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 | + | |
174 | 204 | create_table "categories", :force => true do |t| |
175 | 205 | t.string "name" |
176 | 206 | t.string "slug" |
... | ... | @@ -221,6 +251,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
221 | 251 | t.string "source_type" |
222 | 252 | t.string "user_agent" |
223 | 253 | t.string "referrer" |
254 | + t.integer "group_id" | |
224 | 255 | end |
225 | 256 | |
226 | 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 | 264 | t.datetime "updated_at" |
234 | 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 | 310 | create_table "delayed_jobs", :force => true do |t| |
237 | 311 | t.integer "priority", :default => 0 |
238 | 312 | t.integer "attempts", :default => 0 |
... | ... | @@ -264,11 +338,11 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
264 | 338 | t.text "design_data" |
265 | 339 | t.text "custom_header" |
266 | 340 | t.text "custom_footer" |
267 | - t.string "theme", :default => "default", :null => false | |
341 | + t.string "theme", :default => "default", :null => false | |
268 | 342 | t.text "terms_of_use_acceptance_text" |
269 | 343 | t.datetime "created_at" |
270 | 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 | 346 | t.string "redirection_after_login", :default => "keep_on_same_page" |
273 | 347 | t.text "signup_welcome_text" |
274 | 348 | t.string "languages" |
... | ... | @@ -297,6 +371,10 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
297 | 371 | t.integer "enterprise_id" |
298 | 372 | end |
299 | 373 | |
374 | + create_table "foo_plugin_bars", :force => true do |t| | |
375 | + t.string "name" | |
376 | + end | |
377 | + | |
300 | 378 | create_table "friendships", :force => true do |t| |
301 | 379 | t.integer "person_id" |
302 | 380 | t.integer "friend_id" |
... | ... | @@ -428,7 +506,7 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
428 | 506 | t.string "type" |
429 | 507 | t.string "identifier" |
430 | 508 | t.integer "environment_id" |
431 | - t.boolean "active", :default => true | |
509 | + t.boolean "active", :default => true | |
432 | 510 | t.string "address" |
433 | 511 | t.string "contact_phone" |
434 | 512 | t.integer "home_page_id" |
... | ... | @@ -439,21 +517,21 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
439 | 517 | t.float "lat" |
440 | 518 | t.float "lng" |
441 | 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 | 522 | t.text "custom_header" |
445 | 523 | t.text "custom_footer" |
446 | 524 | t.string "theme" |
447 | - t.boolean "public_profile", :default => true | |
525 | + t.boolean "public_profile", :default => true | |
448 | 526 | t.date "birth_date" |
449 | 527 | t.integer "preferred_domain_id" |
450 | 528 | t.datetime "updated_at" |
451 | - t.boolean "visible", :default => true | |
529 | + t.boolean "visible", :default => true | |
452 | 530 | t.integer "image_id" |
453 | - t.boolean "validated", :default => true | |
531 | + t.boolean "validated", :default => true | |
454 | 532 | t.string "cnpj" |
455 | 533 | t.string "national_region_code" |
456 | - t.boolean "is_template", :default => false | |
534 | + t.boolean "is_template", :default => false | |
457 | 535 | t.integer "template_id" |
458 | 536 | t.string "redirection_after_login" |
459 | 537 | end |
... | ... | @@ -519,6 +597,45 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
519 | 597 | t.datetime "updated_at" |
520 | 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 | 639 | create_table "taggings", :force => true do |t| |
523 | 640 | t.integer "tag_id" |
524 | 641 | t.integer "taggable_id" |
... | ... | @@ -558,6 +675,19 @@ ActiveRecord::Schema.define(:version => 20130429214630) do |
558 | 675 | t.string "thumbnail" |
559 | 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 | 691 | create_table "units", :force => true do |t| |
562 | 692 | t.string "singular", :null => false |
563 | 693 | t.string "plural", :null => false | ... | ... |