Skip to content

Commit

Permalink
Drop extra index
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Aug 9, 2014
1 parent 556c45e commit 1e06648
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20140809211540_remove_service_index_on_user_id.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveServiceIndexOnUserId < ActiveRecord::Migration
def change
remove_index :services, :user_id
end
end
14 changes: 5 additions & 9 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20140730005210) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
ActiveRecord::Schema.define(version: 20140809211540) do

create_table "agent_logs", force: true do |t|
t.integer "agent_id", null: false
Expand Down Expand Up @@ -120,10 +117,10 @@
add_index "scenarios", ["user_id", "guid"], name: "index_scenarios_on_user_id_and_guid", unique: true, using: :btree

create_table "services", force: true do |t|
t.integer "user_id"
t.string "provider"
t.string "name"
t.text "token"
t.integer "user_id", null: false
t.string "provider", null: false
t.string "name", null: false
t.text "token", null: false
t.text "secret"
t.text "refresh_token"
t.datetime "expires_at"
Expand All @@ -134,7 +131,6 @@
end

add_index "services", ["user_id", "global"], name: "index_accounts_on_user_id_and_global", using: :btree
add_index "services", ["user_id"], name: "index_accounts_on_user_id", using: :btree

create_table "user_credentials", force: true do |t|
t.integer "user_id", null: false
Expand Down

0 comments on commit 1e06648

Please sign in to comment.