Sha256: ac8e79660eddedcf6e7d2009df0bec69c82216b8680b4bfe7f2f6ae7591836cf
Contents?: true
Size: 421 Bytes
Versions: 35
Compression:
Stored size: 421 Bytes
Contents
class CreateApiToken < ActiveRecord::Migration def up create_table :api_tokens, id: false do |t| t.uuid :id, primary_key: true t.column :token, :string t.column :description, :string t.column :api_type, :string t.uuid :tokenable_id t.column :tokenable_type, :string t.timestamps end add_index :api_tokens, :id end def down drop_table :api_tokens end end
Version data entries
35 entries across 35 versions & 1 rubygems