Sha256: ede8e5c136ca487e0d2375a6e44597774cd34b19873654356e112b274db1a355
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :<%= table_name %> do |t| t.string :email, null: false t.string :password_digest, null: false t.boolean :verified, null: false, default: false <% if omniauthable? %> t.string :provider t.string :uid <% end -%> t.timestamps end add_index :<%= table_name %>, :email, unique: true <% if omniauthable? -%> add_index :<%= table_name %>, [:provider, :uid], unique: true <% end -%> end end
Version data entries
4 entries across 4 versions & 1 rubygems