Add models and rake tasks for migrating
This commit is contained in:
parent
0f108984ea
commit
5e3557cb63
3 changed files with 74 additions and 0 deletions
19
db/migrations/0001_create_models_table.rb
Normal file
19
db/migrations/0001_create_models_table.rb
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Sequel.migration do
|
||||
change do
|
||||
create_table(:models) do
|
||||
primary_key :id
|
||||
String :name, null: false
|
||||
String :run_command, null: false, unique: true
|
||||
String :reputation, text: true
|
||||
Integer :context_length
|
||||
Integer :parameters
|
||||
Float :prompt_rate
|
||||
Float :eval_rate
|
||||
String :capabilities
|
||||
String :test_results
|
||||
DateTime :created_at, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue