a11yist/db/migrate/20240725173433_create_links.rb

14 lines
323 B
Ruby
Raw Permalink Normal View History

2024-07-26 00:59:00 +02:00
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