Adding social and exit reasons
This commit is contained in:
5
db/migrate/20130829070500_add_exit_reason_to_users.rb
Normal file
5
db/migrate/20130829070500_add_exit_reason_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddExitReasonToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :exit_reason, :string
|
||||
end
|
||||
end
|
||||
10
db/migrate/20130829074549_add_social_media_to_users.rb
Normal file
10
db/migrate/20130829074549_add_social_media_to_users.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class AddSocialMediaToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :twitter_url, :string
|
||||
add_column :users, :facebook_url, :string
|
||||
add_column :users, :github_url, :string
|
||||
add_column :users, :website_url, :string
|
||||
add_column :users, :email_visible, :boolean
|
||||
add_column :users, :phone_visible, :boolean
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
10
db/schema.rb
@@ -1,3 +1,4 @@
|
||||
# encoding: UTF-8
|
||||
# This file is auto-generated from the current state of the database. Instead
|
||||
# of editing this file, please use the migrations feature of Active Record to
|
||||
# incrementally modify your database, and then regenerate this schema definition.
|
||||
@@ -10,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20130828104240) do
|
||||
ActiveRecord::Schema.define(:version => 20130829074549) do
|
||||
|
||||
create_table "cards", :force => true do |t|
|
||||
t.string "card_number"
|
||||
@@ -155,6 +156,13 @@ ActiveRecord::Schema.define(:version => 20130828104240) do
|
||||
t.string "marketing_source"
|
||||
t.string "payee"
|
||||
t.boolean "accountant"
|
||||
t.string "exit_reason"
|
||||
t.string "twitter_url"
|
||||
t.string "facebook_url"
|
||||
t.string "github_url"
|
||||
t.string "website_url"
|
||||
t.boolean "email_visible"
|
||||
t.boolean "phone_visible"
|
||||
end
|
||||
|
||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
||||
|
||||
Reference in New Issue
Block a user