Added preparing actions for custom build
This commit is contained in:
17
db/migrations/202604180000000_create_custom_build.rb
Normal file
17
db/migrations/202604180000000_create_custom_build.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require "sequel"
|
||||
|
||||
Sequel.migration do
|
||||
change do
|
||||
|
||||
create_table(:custom_build_script) do
|
||||
primary_key :id
|
||||
String :content, text: true
|
||||
String :filepath, text: true
|
||||
String :descr, text: true
|
||||
Datetime :create_at, default: Sequel.lit("CURRENT_TIMESTAMP")
|
||||
foreign_key :proj_id, :projects, :key => :id
|
||||
foreign_key :repo_id, :repos, :key => :id
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user