$ rails g model User
belongs_to
has_one
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
DROP TABLE IF EXISTS wp_users; | |
CREATE TABLE wp_users ( | |
ID bigint(20) unsigned NOT NULL auto_increment, | |
user_login varchar(60) NOT NULL default '', | |
user_pass varchar(64) NOT NULL default '', | |
user_nicename varchar(50) NOT NULL default '', | |
user_email varchar(100) NOT NULL default '', | |
user_url varchar(100) NOT NULL default '', | |
user_registered datetime NOT NULL default '0000-00-00 00:00:00', | |
user_activation_key varchar(60) NOT NULL default '', |
<?php | |
/** | |
* Add sub options page with a custom post id | |
*/ | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_sub_page(array( | |
'page_title' => 'CSV Sync', | |
'menu_title' => 'CSV Sync', | |
'parent_slug' => 'users.php', |
<?PHP | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* @name Spintax | |
* @author Jason Davis - http://www.codedevelopr.com/ | |
*/ | |
class Spintax | |
{ | |
public function process($text) | |
{ |