Skip to content

Commit

Permalink
Removed unused ido_id from users table
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Mar 1, 2013
1 parent 95eb878 commit 01141bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions db/migrate/20130301022941_remove_ido_id_from_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class RemoveIdoIdFromUsers < ActiveRecord::Migration
def up
remove_index :users, :ido_id
remove_column :users, :ido_id
end

def down
add_column :users, :ido_id, :text
add_index :users, :ido_id, :unique => true
end
end
4 changes: 1 addition & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20130224150724) do
ActiveRecord::Schema.define(:version => 20130301022941) do

create_table "activities", :force => true do |t|
t.text "content"
Expand Down Expand Up @@ -70,7 +70,6 @@
t.string "authentication_token"
t.text "first_name"
t.text "last_name"
t.text "ido_id"
t.string "locale"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
Expand All @@ -83,6 +82,5 @@

add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["ido_id"], :name => "index_users_on_ido_id", :unique => true

end

0 comments on commit 01141bf

Please sign in to comment.