Fogbugz #61: Erfassen von einem Geburtstag je Contact.
This commit is contained in:
parent
55ed695513
commit
fc03826cc5
5 changed files with 23 additions and 2 deletions
9
db/migrate/20110531183659_add_birthday_to_contact.rb
Normal file
9
db/migrate/20110531183659_add_birthday_to_contact.rb
Normal 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
|
||||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue