Skip to content

Commit

Permalink
Add community column to api_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 2, 2024
1 parent 3150bf8 commit b20102f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240902012745_add_community_to_api_keys.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddCommunityToApiKeys < ActiveRecord::Migration[7.1]
def change
add_column :api_keys, :community, :boolean, default: false, null: false, comment: "used for a verified community use"
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_08_08_024653) do
ActiveRecord::Schema[7.1].define(version: 2024_09_02_012745) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "postgis"
Expand Down Expand Up @@ -97,6 +97,7 @@
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.datetime "expires_at"
t.boolean "community", default: false, null: false, comment: "used for a verified community use"
t.index ["user_id"], name: "index_api_keys_on_user_id"
t.index ["value"], name: "index_api_keys_on_value", unique: true
end
Expand Down

0 comments on commit b20102f

Please sign in to comment.