source:
de.wigbels.ruby/contact/db/migrate/007_add_indizes.rb@
0f6d75f
Last change on this file since 0f6d75f was 7b7d827, checked in by , 11 years ago | |
---|---|
|
|
File size: 218 bytes |
Rev | Line | |
---|---|---|
[7b7d827] | 1 | class AddIndizes < ActiveRecord::Migration |
2 | def self.up | |
3 | add_index :contacts, :name | |
4 | add_index :contacts, :id, :unique => true | |
5 | add_index :contactgroups, :id, :unique => true | |
6 | end | |
7 | ||
8 | def self.down | |
9 | end | |
10 | end |
Note:
See TracBrowser
for help on using the repository browser.