Add column for user's social media and social code sites info
This commit is contained in:
parent
56c7906d52
commit
7ea168fef4
2 changed files with 25 additions and 1 deletions
|
|
@ -0,0 +1,14 @@
|
||||||
|
class AddColumnTwitterGoogleplusGnuGitlabGithubDiasporaGnaSavannahLinkedinWebsiteurlToUser < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :users, :twitter, :string
|
||||||
|
add_column :users, :googleplus, :string
|
||||||
|
add_column :users, :github, :string
|
||||||
|
add_column :users, :gitlab, :string
|
||||||
|
add_column :users, :diaspora, :string
|
||||||
|
add_column :users, :linkedin, :string
|
||||||
|
add_column :users, :website_url, :string
|
||||||
|
add_column :users, :savannah, :string
|
||||||
|
add_column :users, :gna, :string
|
||||||
|
add_column :users, :gnu, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
12
db/schema.rb
12
db/schema.rb
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20170213145807) do
|
ActiveRecord::Schema.define(version: 20170307065520) do
|
||||||
|
|
||||||
create_table "ahoy_events", force: :cascade do |t|
|
create_table "ahoy_events", force: :cascade do |t|
|
||||||
t.uuid "visit_id", limit: 16
|
t.uuid "visit_id", limit: 16
|
||||||
|
|
@ -499,6 +499,16 @@ ActiveRecord::Schema.define(version: 20170213145807) do
|
||||||
t.boolean "is_admin", default: false
|
t.boolean "is_admin", default: false
|
||||||
t.string "username"
|
t.string "username"
|
||||||
t.boolean "is_disabled", default: false
|
t.boolean "is_disabled", default: false
|
||||||
|
t.string "twitter"
|
||||||
|
t.string "googleplus"
|
||||||
|
t.string "github"
|
||||||
|
t.string "gitlab"
|
||||||
|
t.string "diaspora"
|
||||||
|
t.string "linkedin"
|
||||||
|
t.string "website_url"
|
||||||
|
t.string "savannah"
|
||||||
|
t.string "gna"
|
||||||
|
t.string "gnu"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue