mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 09:57:31 +00:00
10 lines
163 B
Ruby
10 lines
163 B
Ruby
|
class AddIndexOnPostSource < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_index :posts, :source
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_index :posts, :source
|
||
|
end
|
||
|
end
|