diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110526184644_add_oauth2_tables.rb | 1 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/db/migrate/20110526184644_add_oauth2_tables.rb b/db/migrate/20110526184644_add_oauth2_tables.rb index 7d20f7418..4d6b87fe4 100644 --- a/db/migrate/20110526184644_add_oauth2_tables.rb +++ b/db/migrate/20110526184644_add_oauth2_tables.rb @@ -5,6 +5,7 @@ class AddOauth2Tables < ActiveRecord::Migration t.string 'oauth_identifier', :limit => 32, :null => false t.string 'oauth_secret', :limit => 32, :null => false end + add_index :oauth_clients, :name, :unique => true create_table 'oauth_authorization_codes', :force => true do |t| t.integer 'authorization_id', :null => false diff --git a/db/schema.rb b/db/schema.rb index 9f7bfa013..2799dbc43 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -230,6 +230,8 @@ ActiveRecord::Schema.define(:version => 20110603212633) do t.string "icon_url" end + add_index "oauth_clients", ["name"], :name => "index_oauth_clients_on_name", :unique => true + create_table "people", :force => true do |t| t.string "guid", :null => false t.text "url", :null => false |