Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add position index to versions

  • Loading branch information...
commit 3744d1eee600f85a1382fe5e23f6cf4da952bd5f 1 parent 304869e
@ddollar ddollar authored
View
9 db/migrate/20091001153907_add_position_index_to_versions.rb
@@ -0,0 +1,9 @@
+class AddPositionIndexToVersions < ActiveRecord::Migration
+ def self.up
+ add_index :versions, :position
+ end
+
+ def self.down
+ remove_index :versions, :position
+ end
+end
View
3  db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20090930181320) do
+ActiveRecord::Schema.define(:version => 20091001153907) do
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
@@ -117,6 +117,7 @@
t.integer "position"
end
+ add_index "versions", ["position"], :name => "index_versions_on_position"
add_index "versions", ["rubygem_id"], :name => "index_versions_on_rubygem_id"
end
Please sign in to comment.
Something went wrong with that request. Please try again.