Links, mainly...
This commit is contained in:
parent
fd42a3f173
commit
21ab02d647
69 changed files with 2258 additions and 155 deletions
13
db/migrate/20240725173433_create_links.rb
Normal file
13
db/migrate/20240725173433_create_links.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class CreateLinks < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :links do |t|
|
||||
t.string :url
|
||||
t.string :text
|
||||
t.datetime :last_check_at
|
||||
t.integer :fail_count, default: 0, null: false
|
||||
t.references :link_category, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue