summaryrefslogtreecommitdiff
path: root/db/migrate/20111006101543_create_phone_book_entries.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20111006101543_create_phone_book_entries.rb')
-rw-r--r--db/migrate/20111006101543_create_phone_book_entries.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/db/migrate/20111006101543_create_phone_book_entries.rb b/db/migrate/20111006101543_create_phone_book_entries.rb
new file mode 100644
index 0000000..fab48b3
--- /dev/null
+++ b/db/migrate/20111006101543_create_phone_book_entries.rb
@@ -0,0 +1,35 @@
+class CreatePhoneBookEntries < ActiveRecord::Migration
+ def self.up
+ create_table :phone_book_entries do |t|
+ t.integer :phone_book_id
+ t.string :first_name
+ t.string :middle_name
+ t.string :last_name
+ t.string :title
+ t.string :nickname
+ t.string :organization
+ t.boolean :is_organization
+ t.string :department
+ t.string :job_title
+ t.boolean :is_male
+ t.date :birthday
+ t.string :birth_name
+ t.string :state
+ t.text :description
+ t.integer :position
+ t.string :homepage_personal
+ t.string :homepage_organization
+ t.string :twitter_account
+ t.string :facebook_account
+ t.string :google_plus_account
+ t.string :xing_account
+ t.string :linkedin_account
+ t.string :mobileme_account
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :phone_book_entries
+ end
+end