Sha256: 14b30e36a7b86e553cdbf9275ea01bad6f4480d1fec02a24bbe24849fed1d37a

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

class CreateNotifyUserNotifications < ActiveRecord::Migration
  def change
    create_table :notify_user_notifications do |t|
      t.string :type
      t.integer :target_id
      t.string :target_type
      t.json :params
      t.string :state
      t.datetime :sent_time

      t.integer :group_id
      t.integer :parent_id

      t.timestamps
    end

    add_index :notify_user_notifications, :group_id
    add_index :notify_user_notifications, :parent_id
    add_index :notify_user_notifications, :target_id
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
notify_user-0.3.2 lib/generators/notify_user/install/templates/create_notify_user_notifications.rb
notify_user-0.3.2 spec/dummy/rails-4.1.0/db/migrate/20150907004707_create_notify_user_notifications.rb
notify_user-0.3.1 lib/generators/notify_user/install/templates/create_notify_user_notifications.rb
notify_user-0.3.1 spec/dummy/rails-4.1.0/db/migrate/20150907004707_create_notify_user_notifications.rb