myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2521] branches/dashboard/db/migrate/092_add_soci


From: noreply
Subject: [myexperiment-hackers] [2521] branches/dashboard/db/migrate/092_add_social_links.rb: social links for user profile
Date: Mon, 27 Sep 2010 12:31:12 -0400 (EDT)

Revision
2521
Author
kkollara
Date
2010-09-27 12:31:12 -0400 (Mon, 27 Sep 2010)

Log Message

social links for user profile

Added Paths

Diff

Added: branches/dashboard/db/migrate/092_add_social_links.rb (0 => 2521)


--- branches/dashboard/db/migrate/092_add_social_links.rb	                        (rev 0)
+++ branches/dashboard/db/migrate/092_add_social_links.rb	2010-09-27 16:31:12 UTC (rev 2521)
@@ -0,0 +1,16 @@
+class AddSocialLinks < ActiveRecord::Migration
+
+def self.up
+add_column :profiles, :facebook, :string, :default => nil
+add_column :profiles, :twitter, :string, :default => nil
+add_column :profiles, :skype, :string, :default => nil
+add_column :profiles, :linkedin, :string, :default => nil
+end
+
+def self.down
+remove_column :profiles, :facebook
+remove_column :profiles, :twitter
+remove_column :profiles, :skype
+remove_column :profiles, :linkedin
+end
+end
\ No newline at end of file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]