20161023201417_create_mastodon_clients.rb 287 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2 3 4 5 6 7 8 9 10 11 12 13
class CreateMastodonClients < ActiveRecord::Migration[5.0]
  def change
    create_table :mastodon_clients do |t|
      t.string :domain
      t.string :client_id
      t.string :client_secret

      t.timestamps
    end

    add_index :mastodon_clients, :domain, unique: true
  end
end