Permalink
Browse files

Remove timestamp fields from version_history

  • Loading branch information...
1 parent 092732f commit 536bb9bfaa8f2c18959db54946f38fc9b499a257 @evanphx evanphx committed Sep 16, 2012
Showing with 13 additions and 6 deletions.
  1. +9 −0 db/migrate/20120916165331_remove_timestamps_on_version_history.rb
  2. +4 −6 db/schema.rb
@@ -0,0 +1,9 @@
+class RemoveTimestampsOnVersionHistory < ActiveRecord::Migration
+ def up
+ remove_column :version_histories, :created_at
+ remove_column :version_histories, :updated_at
+ end
+
+ def down
+ end
+end
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120915212528) do
+ActiveRecord::Schema.define(:version => 20120916165331) do
create_table "announcements", :force => true do |t|
t.text "body"
@@ -120,11 +120,9 @@
add_index "users", ["token"], :name => "index_users_on_token"
create_table "version_histories", :force => true do |t|
- t.integer "version_id"
- t.date "day"
- t.integer "count"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.integer "version_id"
+ t.date "day"
+ t.integer "count"
end
add_index "version_histories", ["version_id", "day"], :name => "index_version_histories_on_version_id_and_day", :unique => true

0 comments on commit 536bb9b

Please sign in to comment.