mailr/db/migrate/20110810073021_create_contacts.rb
Wojciech Todryk 217c7a2288 contacts done
2011-08-16 20:05:58 +02:00

18 lines
322 B
Ruby
Executable file

class CreateContacts < ActiveRecord::Migration
def self.up
create_table :contacts do |t|
t.string :nick
t.string :email
t.string :first_name
t.string :last_name
t.string :info
t.references :user
t.timestamps
end
end
def self.down
drop_table :contacts
end
end