From 3dfaf4a9f25cd8cfb88d5c458adeab49bfb2ceff Mon Sep 17 00:00:00 2001 From: luu stiles Date: Tue, 22 May 2012 00:16:07 -0600 Subject: added fields for twitter and facebooks; view, model, updated with fields and migration script created and run --- db/migrate/20120522060801_add_details_to_users.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20120522060801_add_details_to_users.rb (limited to 'db') diff --git a/db/migrate/20120522060801_add_details_to_users.rb b/db/migrate/20120522060801_add_details_to_users.rb new file mode 100644 index 00000000..aef9de42 --- /dev/null +++ b/db/migrate/20120522060801_add_details_to_users.rb @@ -0,0 +1,6 @@ +class AddDetailsToUsers < ActiveRecord::Migration + def change + add_column :users, :twitter, :string + add_column :users, :facebook, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 9a6283b2..413fe781 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120517125545) do +ActiveRecord::Schema.define(:version => 20120522060801) do create_table "active_admin_comments", :force => true do |t| t.integer "resource_id", :null => false @@ -96,6 +96,8 @@ ActiveRecord::Schema.define(:version => 20120517125545) do t.datetime "updated_at", :null => false t.string "name" t.string "website" + t.string "twitter" + t.string "facebook" end add_index "users", ["email"], :name => "index_users_on_email", :unique => true -- cgit v1.2.3