Browse Source

Use bigint instead of integer for reference column types (#57)

Mario Zigliotto 5 years ago
parent
commit
6fe2d1d31b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      template.rb

+ 1 - 1
template.rb

@@ -142,7 +142,7 @@ def add_announcements
 end
 
 def add_notifications
-  generate "model Notification recipient_id:integer actor_id:integer read_at:datetime action:string notifiable_id:integer notifiable_type:string"
+  generate "model Notification recipient_id:bigint actor_id:bigint read_at:datetime action:string notifiable_id:bigint notifiable_type:string"
   route "resources :notifications, only: [:index]"
 end