Sha256: 2a8c18d4ecd4334e37c1b5350b942d1345429eab71e4511b3ef2fd639e574159
Contents?: true
Size: 537 Bytes
Versions: 10
Compression:
Stored size: 537 Bytes
Contents
class CreateUsers < ActiveRecord::Migration<%= migration_version %> def change create_table :users<%= migration_primary_key_type_string %> do |t| t.timestamps null: false t.string :email, null: false t.string :encrypted_password, limit: 128, null: false t.string :confirmation_token, limit: 128 t.string :remember_token, limit: 128, null: false end add_index :users, :email add_index :users, :confirmation_token, unique: true add_index :users, :remember_token, unique: true end end
Version data entries
10 entries across 10 versions & 1 rubygems