Permalink
Browse files

adding an index to instantiation dates

  • Loading branch information...
1 parent bcba21f commit d56db296748a8ea43f34882f7796643bdbc22cee @Bringo Bringo committed Jan 12, 2012
Showing with 14 additions and 1 deletion.
  1. +2 −0 config/deploy.rb
  2. +9 −0 db/migrate/20120112005028_add_index_for_instantion_dates.rb
  3. +3 −1 db/schema.rb
View
@@ -1,6 +1,7 @@
require 'erb'
require 'json'
require 'grit'
+require 'new_relic/recipes'
require 'capistrano/ext/multistage'
def git_working_dir_branch
@@ -116,6 +117,7 @@ def git_working_dir_branch
after "deploy:setup", "exceptional:config"
after "deploy:update_code", "exceptional:symlink"
+after "deploy:update", "newrelic:notice_deployment"
namespace :app do
desc "configure application"
@@ -0,0 +1,9 @@
+class AddIndexForInstantionDates < ActiveRecord::Migration
+ def self.up
+ add_index :instantiation_dates, :instantiation_id
+ end
+
+ def self.down
+ remove_index :instantiation_dates, :instantiation_id
+ end
+end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120111212907) do
+ActiveRecord::Schema.define(:version => 20120112005028) do
create_table "annotations", :force => true do |t|
t.integer "container_id"
@@ -368,6 +368,8 @@
t.datetime "updated_at"
end
+ add_index "instantiation_dates", ["instantiation_id"], :name => "index_instantiation_dates_on_instantiation_id"
+
create_table "instantiation_dimensions", :force => true do |t|
t.integer "instantiation_id"
t.string "dimension"

0 comments on commit d56db29

Please sign in to comment.