There are some rules which only affect migration files, and we cannot enable them if we're excluding those files from being inspected. We're also changing migrations related to the Rails/TimeZone rule slightly because these fields were already changed afterwards, so we aren't changing the schema.
7 lines
197 B
Ruby
7 lines
197 B
Ruby
class AddTsvectorToSpendingProposals < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :spending_proposals, :tsv, :tsvector
|
|
add_index :spending_proposals, :tsv, using: "gin"
|
|
end
|
|
end
|