mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
init project
This commit is contained in:
14
db/migrate/20191218105120_create_ignores.rb
Normal file
14
db/migrate/20191218105120_create_ignores.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateIgnores < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :ignores do |t|
|
||||
t.string :name
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
dir_url = File.join(Rails.root, "public", "options", "gitignore")
|
||||
GenerateDbService.call(dir_url, 'ignore')
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user