From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- .../20111006101543_create_phone_book_entries.rb | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 db/migrate/20111006101543_create_phone_book_entries.rb (limited to 'db/migrate/20111006101543_create_phone_book_entries.rb') 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 -- cgit v1.2.3