diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-28 03:44:18 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-28 03:44:18 +0400 |
commit | 240eb78b08a16f20b1a94d80caa6d991c3af4983 (patch) | |
tree | 906600cd6155d64ed9aa46366faa2633db6fb100 /db | |
parent | 17917528f62147c51d908b97ab24e0c47d44d807 (diff) |
Change homepage_url to application_base_url
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110623210918_add_o_auth2_support.rb | 22 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/db/migrate/20110623210918_add_o_auth2_support.rb b/db/migrate/20110623210918_add_o_auth2_support.rb index 14b354189..8bf691d19 100644 --- a/db/migrate/20110623210918_add_o_auth2_support.rb +++ b/db/migrate/20110623210918_add_o_auth2_support.rb @@ -1,20 +1,20 @@ class AddOAuth2Support < ActiveRecord::Migration def self.up create_table 'oauth_clients', :force => true do |t| - t.string 'name', :limit => 127, :null => false - t.text 'description', :null => false - t.string 'homepage_url', :limit => 127, :null => false - t.string 'icon_url', :limit => 127, :null => false + t.string 'name', :limit => 127, :null => false + t.text 'description', :null => false + t.string 'application_base_url', :limit => 127, :null => false + t.string 'icon_url', :limit => 127, :null => false - t.string 'oauth_identifier', :limit => 32, :null => false - t.string 'oauth_secret', :limit => 32, :null => false - t.string 'nonce', :limit => 64 - t.text 'public_key', :null => false - t.text 'permissions_overview', :null => false + t.string 'oauth_identifier', :limit => 32, :null => false + t.string 'oauth_secret', :limit => 32, :null => false + t.string 'nonce', :limit => 64 + t.text 'public_key', :null => false + t.text 'permissions_overview', :null => false end add_index :oauth_clients, :name, :unique => true - add_index :oauth_clients, :homepage_url, :unique => true + add_index :oauth_clients, :application_base_url, :unique => true add_index :oauth_clients, :nonce, :unique => true create_table 'oauth_authorization_codes', :force => true do |t| @@ -56,7 +56,7 @@ class AddOAuth2Support < ActiveRecord::Migration drop_table 'oauth_authorization_codes' remove_index :oauth_clients, :column => :nonce - remove_index :oauth_clients, :column => :homepage_url + remove_index :oauth_clients, :column => :application_base_url remove_index :oauth_clients, :column => :name drop_table 'oauth_clients' diff --git a/db/schema.rb b/db/schema.rb index 69f37ce1d..fe05befad 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -226,7 +226,7 @@ ActiveRecord::Schema.define(:version => 20110623210918) do create_table "oauth_clients", :force => true do |t| t.string "name", :limit => 127, :null => false t.text "description", :null => false - t.string "homepage_url", :limit => 127, :null => false + t.string "application_base_url", :limit => 127, :null => false t.string "icon_url", :limit => 127, :null => false t.string "oauth_identifier", :limit => 32, :null => false t.string "oauth_secret", :limit => 32, :null => false @@ -235,7 +235,7 @@ ActiveRecord::Schema.define(:version => 20110623210918) do t.text "permissions_overview", :null => false end - add_index "oauth_clients", ["homepage_url"], :name => "index_oauth_clients_on_homepage_url", :unique => true + add_index "oauth_clients", ["application_base_url"], :name => "index_oauth_clients_on_application_base_url", :unique => true add_index "oauth_clients", ["name"], :name => "index_oauth_clients_on_name", :unique => true add_index "oauth_clients", ["nonce"], :name => "index_oauth_clients_on_nonce", :unique => true |