Преглед на файлове

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

Mario Zigliotto преди 6 години
родител
ревизия
6fe2d1d31b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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