mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
15 lines
296 B
Ruby
15 lines
296 B
Ruby
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
|