20140824000002_create_online_notification.rb 696 B

1234567891011121314151617
  1. class CreateOnlineNotification < ActiveRecord::Migration
  2. def up
  3. create_table :online_notifications do |t|
  4. t.column :o_id, :integer, :null => false
  5. t.column :object_lookup_id, :integer, :null => false
  6. t.column :type_lookup_id, :integer, :null => false
  7. t.column :user_id, :integer, :null => false
  8. t.column :seen, :boolean, :null => false, :default => false
  9. t.column :created_by_id, :integer, :null => false
  10. t.timestamps
  11. end
  12. add_index :online_notifications, [:user_id]
  13. end
  14. def down
  15. end
  16. end