Skip to content

Intey/RailsTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Another one... Yes, it's repeating of tutorial, than may founded. What learns:

  • Ruby on Rails
  • RubyGem
  • Git
  • MarkDown (this list maked only for this)
  • Postgresql

##SQLite3 migrate to Postgresql I needed to change SQLite3 to Postgresql, but don't want immediately use rails new some2 --database=postgresql. I want get expirience of migration. It Sounds funny: i have no db. Just blank files, that was initialized by rails new some1. But, when try to push this repo to the Heroku, I have noticed, that SQLite3 is used no longer. "Challenge accepted." - I think. So:

  • Platform - ArchLinux
  • Rails 4.1.0, Ruby 2.1.1.

###Installing Postgresql (PG) and start database server: pacman -S postgresql -installing package systemd-tmpfiles --create postgresql.conf - creates config. sudo su - postgres -c "initdb --locale ru_RU.UTF-8 -E UTF8 -D "var/lib/postgres/data'" - init claster (PG specific ?) systemctl start postgresql - start server systemctl enable postgresql - autostart

###Create user for this repo: su root su - postgres - become postgres user. createuser intey - it's me. =] Manual recommend use -DRSP flags: D - can't create db; R - can't create accounts; S - user is no root; P - ask password. Also one more hint: createuser -a intey - make me admin.

###Migrate in this repo root: rake db:setup - it's create table (I think so) and .... I should RTFM. TODO:

It's all.

Lol. It's looks fun. Funny English, Rails, PG, *Nix and other.

About

Ruby on Rail Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors