source: de.wigbels.ruby/contact/db/migrate/001_create_contacts.rb@ 7b22594

Last change on this file since 7b22594 was 7b7d827, checked in by njw <njw@…>, 11 years ago

opened projects: hothotwrite and contact

  • Property mode set to 100644
File size: 291 bytes
RevLine 
[7b7d827]1class CreateContacts < ActiveRecord::Migration
2 def self.up
3 create_table :contacts do |t|
4 t.column :name, :string
5 t.column :email, :string
6 t.column :url, :string
7 t.column :free_text, :text
8 end
9 end
10
11 def self.down
12 drop_table :contacts
13 end
14end
Note: See TracBrowser for help on using the repository browser.