Skip to content

Commit

Permalink
add_index options are hashes not just :symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz committed Aug 6, 2010
1 parent d2c99ad commit e24f143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/oauth_consumer/templates/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.up
t.timestamps
end

add_index :consumer_tokens, :token, :unique
add_index :consumer_tokens, :token, :unique => true

end

Expand Down
4 changes: 2 additions & 2 deletions generators/oauth_provider/templates/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.up

t.timestamps
end
add_index :client_applications, :key, :unique
add_index :client_applications, :key, :unique => true

create_table :oauth_tokens do |t|
t.integer :user_id
Expand All @@ -26,7 +26,7 @@ def self.up
t.timestamps
end

add_index :oauth_tokens, :token, :unique
add_index :oauth_tokens, :token, :unique => true

create_table :oauth_nonces do |t|
t.string :nonce
Expand Down

0 comments on commit e24f143

Please sign in to comment.