Skip to content

Showing how to connect to a DB in ruby for a friend (made in 15min)

Notifications You must be signed in to change notification settings

IgorMarques/db_for_a_friend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A DB for a friend

Just showing a simple way to connect to a DB with ruby

(this app was made in like 15 min so don't mind)

SETUP:

At your terminal, run:

$ gem install activerecord
$ gem install sqlite3

RUNNING:

To create the database tables, run:

$ ruby create_database.rb

To create the records, run:

$ ruby create_records.rb

To run your query, run:

$ ruby main.rb

About

Showing how to connect to a DB in ruby for a friend (made in 15min)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages