Last change
on this file since e9f5e39 was 7b7d827, checked in by njw <njw@…>, 11 years ago |
opened projects: hothotwrite and contact
|
-
Property mode
set to
100644
|
File size:
291 bytes
|
Line | |
---|
1 | class 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
|
---|
14 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.