This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/db/migrate/09_create_register_tokens.rb
2014-04-04 01:08:17 +02:00

10 lines
369 B
Ruby

class CreateRegisterTokens < ActiveRecord::Migration
def change
create_table :register_tokens, primary_key: :uuid do |t|
t.string :uuid, limit: 32, unique: true, primary: true, null: false
t.string :token, limit: 6, null: false
t.string :email, unique: true, null: false
end
change_column :register_tokens, :uuid, :string
end
end