diff --git a/db/migrate/20130606110602_change_article_versions_published_at_from_date_to_datetime.rb b/db/migrate/20130606110602_change_article_versions_published_at_from_date_to_datetime.rb new file mode 100644 index 0000000..9ecae04 --- /dev/null +++ b/db/migrate/20130606110602_change_article_versions_published_at_from_date_to_datetime.rb @@ -0,0 +1,9 @@ +class ChangeArticleVersionsPublishedAtFromDateToDatetime < ActiveRecord::Migration + def self.up + change_column :article_versions, :published_at, :datetime + end + + def self.down + change_column :article_versions, :published_at, :date + end +end diff --git a/db/schema.rb b/db/schema.rb index 306050f..1531102 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130605135210) do +ActiveRecord::Schema.define(:version => 20130606110602) do create_table "abuse_reports", :force => true do |t| t.integer "reporter_id" @@ -76,7 +76,7 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.text "setting" t.boolean "notify_comments", :default => false t.integer "hits", :default => 0 - t.date "published_at" + t.datetime "published_at" t.string "source" t.boolean "highlighted", :default => false t.string "external_link" @@ -171,36 +171,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do add_index "boxes", ["owner_id", "owner_type"], :name => "index_boxes_on_owner_type_and_owner_id" - create_table "bsc_plugin_contracts", :force => true do |t| - t.string "client_name" - t.integer "client_type" - t.integer "business_type" - t.string "state" - t.string "city" - t.integer "status", :default => 0 - t.integer "number_of_producers", :default => 0 - t.datetime "supply_start" - t.datetime "supply_end" - t.text "annotations" - t.integer "bsc_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "bsc_plugin_contracts_enterprises", :id => false, :force => true do |t| - t.integer "contract_id" - t.integer "enterprise_id" - end - - create_table "bsc_plugin_sales", :force => true do |t| - t.integer "product_id", :null => false - t.integer "contract_id", :null => false - t.integer "quantity", :null => false - t.decimal "price" - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "categories", :force => true do |t| t.string "name" t.string "slug" @@ -251,7 +221,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.string "source_type" t.string "user_agent" t.string "referrer" - t.integer "group_id" end add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" @@ -264,49 +233,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.datetime "updated_at" end - create_table "custom_forms_plugin_answers", :force => true do |t| - t.text "value" - t.integer "field_id" - t.integer "submission_id" - end - - create_table "custom_forms_plugin_fields", :force => true do |t| - t.string "name" - t.string "slug" - t.string "type" - t.string "default_value" - t.string "choices" - t.float "minimum" - t.float "maximum" - t.integer "form_id" - t.boolean "mandatory", :default => false - t.boolean "multiple" - t.boolean "list" - end - - create_table "custom_forms_plugin_forms", :force => true do |t| - t.string "name" - t.string "slug" - t.text "description" - t.integer "profile_id" - t.datetime "begining" - t.datetime "ending" - t.boolean "report_submissions", :default => false - t.boolean "on_membership", :default => false - t.string "access" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "custom_forms_plugin_submissions", :force => true do |t| - t.string "author_name" - t.string "author_email" - t.integer "profile_id" - t.integer "form_id" - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "delayed_jobs", :force => true do |t| t.integer "priority", :default => 0 t.integer "attempts", :default => 0 @@ -371,10 +297,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.integer "enterprise_id" end - create_table "foo_plugin_bars", :force => true do |t| - t.string "name" - end - create_table "friendships", :force => true do |t| t.integer "person_id" t.integer "friend_id" @@ -597,45 +519,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.datetime "updated_at" end - create_table "shopping_cart_plugin_purchase_orders", :force => true do |t| - t.integer "customer_id" - t.integer "seller_id" - t.text "data" - t.integer "status" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "spaminator_plugin_reports", :force => true do |t| - t.integer "spams_by_content", :default => 0 - t.integer "spams_by_no_network", :default => 0 - t.integer "spammers_by_comments", :default => 0 - t.integer "spammers_by_no_network", :default => 0 - t.integer "total_people", :default => 0 - t.integer "total_comments", :default => 0 - t.integer "processed_comments", :default => 0 - t.integer "processed_people", :default => 0 - t.integer "environment_id" - t.text "failed" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "sub_organizations_plugin_approve_paternity_relations", :force => true do |t| - t.integer "task_id" - t.integer "parent_id" - t.string "parent_type" - t.integer "child_id" - t.string "child_type" - end - - create_table "sub_organizations_plugin_relations", :force => true do |t| - t.integer "parent_id" - t.string "parent_type" - t.integer "child_id" - t.string "child_type" - end - create_table "taggings", :force => true do |t| t.integer "tag_id" t.integer "taggable_id" @@ -675,19 +558,6 @@ ActiveRecord::Schema.define(:version => 20130605135210) do t.string "thumbnail" end - create_table "tolerance_time_plugin_publications", :force => true do |t| - t.integer "target_id" - t.string "target_type" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "tolerance_time_plugin_tolerances", :force => true do |t| - t.integer "profile_id" - t.integer "content_tolerance" - t.integer "comment_tolerance" - end - create_table "units", :force => true do |t| t.string "singular", :null => false t.string "plural", :null => false -- libgit2 0.21.2