Sha256: 4c0747921301d5645a668e8dcf2c6d1b6344b6cacbeaa10086f6d2c2bb74ad0b
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
class CreateWupeeNotifications < ActiveRecord::Migration def change create_table :wupee_notifications do |t| t.references :receiver, polymorphic: true t.references :attached_object, polymorphic: true t.belongs_to :notification_type t.integer :notification_type_id t.boolean :is_read, default: false t.boolean :is_sent, default: false t.timestamps null: false end add_foreign_key :wupee_notifications, :wupee_notification_types, column: :notification_type_id end end
Version data entries
7 entries across 7 versions & 1 rubygems