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.
13 lines
300 B
Ruby
13 lines
300 B
Ruby
class CreatePollPairAnswers < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :poll_pair_answers do |t|
|
|
t.references :question, index: true
|
|
t.references :author, index: true
|
|
t.references :answer_rigth
|
|
t.references :answer_left
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|