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.
12 lines
288 B
Ruby
12 lines
288 B
Ruby
class CreateVotationSetAnswers < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :votation_set_answers do |t|
|
|
t.integer :author_id, index: true
|
|
t.references :votation_type, foreign_key: true, index: true
|
|
t.string :answer
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|