Sha256: 356317ef53b142ee40e501d869e4a91e249bd95c21810f77dcdc1f0a7144eebe
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 Bytes
Contents
# Migration responsible for creating a table with notifications class <%= @migration_name %> < ActiveRecord::Migration # Create table def change create_table :notifications do |t| t.belongs_to :target, polymorphic: true, index: true, null: false t.belongs_to :notifiable, polymorphic: true, index: true, null: false t.string :key , null: false t.belongs_to :group, polymorphic: true, index: true t.integer :group_owner_id , index: true t.belongs_to :notifier, polymorphic: true, index: true t.text :parameters t.datetime :opened_at t.timestamps end end end
Version data entries
5 entries across 5 versions & 1 rubygems