Fix Rails/CreateTableWithTimestamps
cop (#30836)
This commit is contained in:
parent
b2ce9bb4c7
commit
c91e06bcad
9 changed files with 13 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class CreateStatusPins < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :status_pins do |t|
|
||||
create_table :status_pins do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
||||
t.belongs_to :account, foreign_key: { on_delete: :cascade }, null: false
|
||||
t.belongs_to :status, foreign_key: { on_delete: :cascade }, null: false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue