Skip to content

Commit

Permalink
Added index to migration, since lookups are key-based
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Clayton authored and AlexJWayne committed Dec 14, 2009
1 parent c409585 commit f0b30e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/settings_migration/templates/migration.rb
Expand Up @@ -5,6 +5,8 @@ def self.up
t.text :value, :null => true
t.timestamps
end

add_index :settings, :var, :uniq => true
end

def self.down
Expand Down

0 comments on commit f0b30e9

Please sign in to comment.