Archived
fuck it
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
class CreateRegisterTokens < ActiveRecord::Migration
|
class CreateRegisterTokens < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
create_table :register_tokens, id: false do |t|
|
create_table :register_tokens do |t|
|
||||||
t.string :uuid, limit: 32, unique: true, primary: true, null: false
|
t.string :uuid, limit: 32, unique: true, primary: true, null: false
|
||||||
t.string :token, limit: 6, null: false
|
t.string :token, limit: 6, null: false
|
||||||
t.string :email, unique: true, null: false
|
t.string :email, unique: true, null: false
|
||||||
end
|
end
|
||||||
add_index :register_tokens, :uuid, :string
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user