Skip to content

Commit

Permalink
Remove timestamp fields from version_history
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Sep 16, 2012
1 parent 092732f commit 536bb9b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
@@ -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
10 changes: 4 additions & 6 deletions db/schema.rb
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 536bb9b

Please sign in to comment.