Sha256: 70a301f7168b040a3d16446dbb84dec5c14468d8c373c26a7fdc97f6a598231e
Contents?: true
Size: 924 Bytes
Versions: 12
Compression:
Stored size: 924 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.string :email, :default => "", :null => false t.string :encrypted_password, :limit => 128, :default => "", :null => false t.string :reset_password_token t.datetime :reset_password_sent_at t.datetime :remember_created_at t.integer :sign_in_count, :default => 0 t.datetime :current_sign_in_at t.datetime :last_sign_in_at t.string :current_sign_in_ip t.string :last_sign_in_ip t.datetime :created_at t.datetime :updated_at end add_index :users, ["email"], :name => "index_users_on_email", :unique => true add_index :users, ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true EtabliocmsCore::User.create(:email => "patrikjira@gmail.com", :password => "heslo1", :password_confirmation => "heslo1") end end
Version data entries
12 entries across 12 versions & 1 rubygems