Sha256: 5e6338c780ce6519be83e010d3f075c201c4b2a9b18322a858fc045966a844c4

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 Bytes

Contents

class CreateNotifications < ActiveRecord::Migration
  def change
    create_table :notifications do |t|
      t.string    :notification_type, null: false
      t.integer   :subject_id, null: false
      t.string    :subject_type, null: false
      t.integer   :entity_id, null: false
      t.string    :entity_type, null: false
      t.boolean   :read, default:false
      
      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tekeya-0.0.10 db/migrate/02_create_notifications.rb
tekeya-0.0.9 db/migrate/02_create_notifications.rb
tekeya-0.0.7 db/migrate/02_create_notifications.rb
tekeya-0.0.6 db/migrate/02_create_notifications.rb
tekeya-0.0.5 db/migrate/02_create_notifications.rb
tekeya-0.0.4 db/migrate/02_create_notifications.rb
tekeya-0.0.3 db/migrate/02_create_notifications.rb
tekeya-0.0.2 db/migrate/02_create_notifications.rb
tekeya-0.0.1 db/migrate/02_create_notifications.rb