Skip to content

Commit

Permalink
Fixed typo in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Sep 20, 2010
1 parent dc75c97 commit 85ee45e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/settings_migration/templates/migration.rb
Expand Up @@ -8,7 +8,7 @@ def self.up
t.timestamps
end

add_index :settings, [ :object_type, :object_id, :var ], :uniq => true
add_index :settings, [ :object_type, :object_id, :var ], :unique => true
end

def self.down
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Expand Up @@ -21,7 +21,7 @@ def setup_db
t.string :object_type, :limit => 30, :null => true
t.timestamps
end
add_index :settings, [ :object_type, :object_id, :var ], :uniq => true
add_index :settings, [ :object_type, :object_id, :var ], :unique => true

create_table :users do |t|
t.string :name
Expand Down

0 comments on commit 85ee45e

Please sign in to comment.