lib/generators/templates/install/notifications_migration.rb.erb in notification-handler-1.2.5 vs lib/generators/templates/install/notifications_migration.rb.erb in notification-handler-1.2.6
- old
+ new
@@ -1,16 +1,16 @@
-class NotificationHandlerMigration < ActiveRecord::Migration<%= migration_version %>
- def change
- create_table :notifications do |t|
-
- t.references :target, polymorphic: true, index: true
- t.references :object, polymorphic: true, index: true
-
- t.boolean :read, default: false, null: false, index: true
-
- t.text :metadata
-
- t.timestamps
-
- end
- end
-end
+# frozen_string_literal: true
+
+class NotificationHandlerMigration < ActiveRecord::Migration<%= migration_version %>
+ def change
+ create_table :notifications do |t|
+ t.references :target, polymorphic: true, index: true
+ t.references :object, polymorphic: true, index: true
+
+ t.boolean :read, default: false, null: false, index: true
+
+ t.text :metadata
+
+ t.timestamps
+ end
+ end
+end