ADD model Ignore

dev_forge
Jasder 5 years ago
parent 4f357d2e6b
commit 6c6d5f44cf

@ -0,0 +1,2 @@
class Ignore < ApplicationRecord
end

@ -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
Loading…
Cancel
Save