Fogbugz #61: Erfassen von einem Geburtstag je Contact.

This commit is contained in:
gchq 2011-05-31 21:11:03 +02:00
parent 55ed695513
commit fc03826cc5
5 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class AddBirthdayToContact < ActiveRecord::Migration
def self.up
add_column :contacts, :birth_date, :date
end
def self.down
remove_column :contacts, :birth_date
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110517221027) do
ActiveRecord::Schema.define(:version => 20110531183659) do
create_table "contacts", :force => true do |t|
t.string "firstname"
@ -22,6 +22,7 @@ ActiveRecord::Schema.define(:version => 20110517221027) do
t.string "country"
t.datetime "created_at"
t.datetime "updated_at"
t.date "birth_date"
end
create_table "emails", :force => true do |t|