source:
de.wigbels.ruby/contact/db/migrate/007_add_indizes.rb@
7b7d827
Last change on this file since 7b7d827 was 7b7d827, checked in by , 11 years ago | |
---|---|
|
|
File size: 218 bytes |
Line | |
---|---|
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.