Commit c50dc6454f6251c546fc0ff2f444468410b36830
1 parent
e62afb3d
Exists in
master
and in
22 other branches
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)
Showing
2 changed files
with
11 additions
and
132 deletions
Show diff stats
db/migrate/20130606110602_change_article_versions_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 => 20130605135210) do | 12 | +ActiveRecord::Schema.define(:version => 20130606110602) 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" |
| @@ -76,7 +76,7 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -76,7 +76,7 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 76 | t.text "setting" | 76 | t.text "setting" |
| 77 | t.boolean "notify_comments", :default => false | 77 | t.boolean "notify_comments", :default => false |
| 78 | t.integer "hits", :default => 0 | 78 | t.integer "hits", :default => 0 |
| 79 | - t.date "published_at" | 79 | + t.datetime "published_at" |
| 80 | t.string "source" | 80 | t.string "source" |
| 81 | t.boolean "highlighted", :default => false | 81 | t.boolean "highlighted", :default => false |
| 82 | t.string "external_link" | 82 | t.string "external_link" |
| @@ -171,36 +171,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -171,36 +171,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) 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 | - | ||
| 204 | create_table "categories", :force => true do |t| | 174 | create_table "categories", :force => true do |t| |
| 205 | t.string "name" | 175 | t.string "name" |
| 206 | t.string "slug" | 176 | t.string "slug" |
| @@ -251,7 +221,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -251,7 +221,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 251 | t.string "source_type" | 221 | t.string "source_type" |
| 252 | t.string "user_agent" | 222 | t.string "user_agent" |
| 253 | t.string "referrer" | 223 | t.string "referrer" |
| 254 | - t.integer "group_id" | ||
| 255 | end | 224 | end |
| 256 | 225 | ||
| 257 | add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" | 226 | add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" |
| @@ -264,49 +233,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -264,49 +233,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 264 | t.datetime "updated_at" | 233 | t.datetime "updated_at" |
| 265 | end | 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 | create_table "delayed_jobs", :force => true do |t| | 236 | create_table "delayed_jobs", :force => true do |t| |
| 311 | t.integer "priority", :default => 0 | 237 | t.integer "priority", :default => 0 |
| 312 | t.integer "attempts", :default => 0 | 238 | t.integer "attempts", :default => 0 |
| @@ -371,10 +297,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -371,10 +297,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 371 | t.integer "enterprise_id" | 297 | t.integer "enterprise_id" |
| 372 | end | 298 | end |
| 373 | 299 | ||
| 374 | - create_table "foo_plugin_bars", :force => true do |t| | ||
| 375 | - t.string "name" | ||
| 376 | - end | ||
| 377 | - | ||
| 378 | create_table "friendships", :force => true do |t| | 300 | create_table "friendships", :force => true do |t| |
| 379 | t.integer "person_id" | 301 | t.integer "person_id" |
| 380 | t.integer "friend_id" | 302 | t.integer "friend_id" |
| @@ -597,45 +519,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -597,45 +519,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 597 | t.datetime "updated_at" | 519 | t.datetime "updated_at" |
| 598 | end | 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 | create_table "taggings", :force => true do |t| | 522 | create_table "taggings", :force => true do |t| |
| 640 | t.integer "tag_id" | 523 | t.integer "tag_id" |
| 641 | t.integer "taggable_id" | 524 | t.integer "taggable_id" |
| @@ -675,19 +558,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | @@ -675,19 +558,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do | ||
| 675 | t.string "thumbnail" | 558 | t.string "thumbnail" |
| 676 | end | 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 | create_table "units", :force => true do |t| | 561 | create_table "units", :force => true do |t| |
| 692 | t.string "singular", :null => false | 562 | t.string "singular", :null => false |
| 693 | t.string "plural", :null => false | 563 | t.string "plural", :null => false |