diff options
Diffstat (limited to 'db/migrate/20091017213444_add_missing_indexes_to_tokens.rb')
-rw-r--r-- | db/migrate/20091017213444_add_missing_indexes_to_tokens.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb new file mode 100644 index 000000000..f0979f21c --- /dev/null +++ b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb @@ -0,0 +1,9 @@ +class AddMissingIndexesToTokens < ActiveRecord::Migration + def self.up + add_index :tokens, :user_id + end + + def self.down + remove_index :tokens, :user_id + end +end |