0
當添加一個索引表,是它一樣簡單寫一個遷移有:如何添加索引到Rails DB?
add_index(:column_name)
而對於向下的方法
remove_index(:column_name)
是否有我需要知道的任何意外?
Working in Rails 3.07,Postgres。在Heroku上。
謝謝。
當添加一個索引表,是它一樣簡單寫一個遷移有:如何添加索引到Rails DB?
add_index(:column_name)
而對於向下的方法
remove_index(:column_name)
是否有我需要知道的任何意外?
Working in Rails 3.07,Postgres。在Heroku上。
謝謝。
爲什麼我會覺得這是個詭計的問題?
是的,就是這麼簡單。不,沒有任何意外,儘管很少有人會很高興能夠做出這樣的承諾。 :-)
http://guides.rubyonrails.org/migrations.html –