Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

During the install it should install a migration that created the needed tables #24

Open
@johansmitsnl

Description

@johansmitsnl

Now when you migrate the database you loose the injected schema.
And missing the tables: hyperloop_connections and hyperloop_queued_messages

It should install these 2 migrations:

class InstallHyperloopConnections < ActiveRecord::Migration[5.2]
  def change

    create_table :hyperloop_connections do |t|
      t.string :channel
      t.string :session
      t.datetime :created_at
      t.datetime :expires_at, index: true
      t.datetime :refresh_at
    end


    create_table :hyperloop_queued_messages do |t|
      t.integer :connection_id, index: true
      t.text :data
    end
  end
end

Should there be an index on the channel of session?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions