kopie van
https://github.com/redmine/redmine.git
synced 2024-08-26 05:57:38 +02:00
10 regels
170 B
Ruby
10 regels
170 B
Ruby
![]() |
class AddMissingIndexesToNews < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_index :news, :author_id
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_index :news, :author_id
|
||
|
end
|
||
|
end
|