Fix Rails/CreateTableWithTimestamps
cop (#30836)
This commit is contained in:
parent
65508bb0c0
commit
4cae309f6a
9 changed files with 13 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class CreateStatusTrends < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :status_trends do |t|
|
||||
create_table :status_trends do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
||||
t.references :status, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
|
||||
t.references :account, null: false, foreign_key: { on_delete: :cascade }
|
||||
t.float :score, null: false, default: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue