diff options
| author | luu stiles <luuduong@gmail.com> | 2012-05-22 00:16:07 -0600 |
|---|---|---|
| committer | luu stiles <luuduong@gmail.com> | 2012-05-22 00:16:07 -0600 |
| commit | 3dfaf4a9f25cd8cfb88d5c458adeab49bfb2ceff (patch) | |
| tree | 7267462b24e233a3bd521cd9b7e3cea1f467303f /db | |
| parent | f931d3ab78fd30f63547d91c1c560055ddc64342 (diff) | |
added fields for twitter and facebooks; view, model, updated with fields and migration script created and run
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20120522060801_add_details_to_users.rb | 6 | ||||
| -rw-r--r-- | db/schema.rb | 4 |
2 files changed, 9 insertions, 1 deletions
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 |
