mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 05:55:19 +01:00
14 lines
312 B
Ruby
14 lines
312 B
Ruby
|
class CreateDevices < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
create_table :devices do |t|
|
||
|
t.integer :account_id, null: false
|
||
|
t.string :registration_id, null: false, default: ''
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :devices, :registration_id
|
||
|
add_index :devices, :account_id
|
||
|
end
|
||
|
end
|