mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-16 20:22:18 +00:00
18 lines
482 B
Ruby
18 lines
482 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|