You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
634 B
18 lines
634 B
class CreateTrainingWatchSources < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :training_watch_sources do |t|
|
|
t.string :name, null: false
|
|
t.string :url, null: false
|
|
t.string :kind, null: false, default: "html" # html | rss (optional)
|
|
t.string :match_regex # optional: überschreibt Default-Matcher
|
|
t.string :last_etag
|
|
t.string :last_modified
|
|
t.datetime :last_checked_at
|
|
t.boolean :enabled, null: false, default: true
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :training_watch_sources, :enabled
|
|
add_index :training_watch_sources, :url, unique: true
|
|
end
|
|
end
|