Sha256: 654c93284fdbf3efc0d4d1b6b62a1760c993f3bf1eefd9b3da555a1bfb0efeb3

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

class CreateDevices < ActiveRecord::Migration[7.0]
  def change
    create_table :devices do |t|
      t.string :refresh_token
      t.integer :platform, default: 0
      t.references :resourceable, polymorphic: true

      t.timestamps
    end

    add_index :devices, :refresh_token, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
n_base_rails-0.1.2 lib/db/migrate/20230113072522_create_devices.rb
n_base_rails-0.1.1 lib/db/migrate/20230113072522_create_devices.rb