mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 16:49:04 +01:00
15 lines
451 B
Ruby
15 lines
451 B
Ruby
class CreateSubscriptions < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :subscriptions do |t|
|
|
t.string :callback_url, null: false, default: ''
|
|
t.string :secret
|
|
t.datetime :expires_at, null: true, default: nil
|
|
t.boolean :confirmed, null: false, default: false
|
|
t.integer :account_id, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :subscriptions, [:callback_url, :account_id], unique: true
|
|
end
|
|
end
|