Permalink
Browse files

Remove the unique index on Attendee.twitter_id

  • Loading branch information...
1 parent 60dfd9e commit bd316922363dd2173be1bdc95e8bd98685b47c32 @senior senior committed Sep 9, 2012
Showing with 14 additions and 4 deletions.
  1. +9 −0 db/migrate/20120909013419_drop_attendee_twitter_id_unique_index.rb
  2. +5 −4 db/schema.rb
@@ -0,0 +1,9 @@
+class DropAttendeeTwitterIdUniqueIndex < ActiveRecord::Migration
+ def self.up
+ remove_index :attendees, :twitter_id
+ end
+
+ def self.down
+ add_index :attendees, :twitter_id, :unique => true
+ end
+end
View
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120817005718) do
+ActiveRecord::Schema.define(:version => 20120909013419) do
create_table "attendee_creds", :force => true do |t|
t.string "email", :default => "", :null => false
@@ -49,15 +49,13 @@
t.string "cached_slug"
t.string "company_url"
t.integer "attendee_cred_id"
- t.text "bio"
end
add_index "attendees", ["cached_slug"], :name => "index_attendees_on_cached_slug", :unique => true
add_index "attendees", ["email"], :name => "index_attendees_on_email", :unique => true
add_index "attendees", ["first_name"], :name => "index_attendees_on_first_name"
add_index "attendees", ["last_name"], :name => "index_attendees_on_last_name"
add_index "attendees", ["reg_id"], :name => "index_attendees_on_reg_id"
- add_index "attendees", ["twitter_id"], :name => "index_attendees_on_twitter_id", :unique => true
create_table "attendees_conference_sessions", :id => false, :force => true do |t|
t.integer "attendee_id", :null => false
@@ -132,13 +130,14 @@
create_table "news_item_translations", :force => true do |t|
t.integer "news_item_id"
t.string "locale"
- t.text "body"
t.string "external_url"
t.string "title"
+ t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
end
+ add_index "news_item_translations", ["locale"], :name => "index_news_item_translations_on_locale"
add_index "news_item_translations", ["news_item_id"], :name => "index_news_item_translations_on_news_item_id"
create_table "news_items", :force => true do |t|
@@ -162,6 +161,7 @@
t.datetime "updated_at"
end
+ add_index "page_part_translations", ["locale"], :name => "index_page_part_translations_on_locale"
add_index "page_part_translations", ["page_part_id"], :name => "index_page_part_translations_on_page_part_id"
create_table "page_parts", :force => true do |t|
@@ -185,6 +185,7 @@
t.datetime "updated_at"
end
+ add_index "page_translations", ["locale"], :name => "index_page_translations_on_locale"
add_index "page_translations", ["page_id"], :name => "index_page_translations_on_page_id"
create_table "pages", :force => true do |t|

0 comments on commit bd31692

Please sign in to comment.