No commit activity in last 3 years
No release in over 3 years
Point database to *_readonly on --sandbox
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.1
 Project Readme

SafeRailsConsole

Usage

Gemfile:

gem 'safe_rails_console'

Then bundle install and add *_readonly section to database.yml:

common: &common
  adapter:   mysql2
  encoding:  utf8
  reconnect: false
  pool:      5

development:
  <<: *common
  database: youapp_development
  username: root
  password: 
  host:     localhost

# Like this !!!
development_readonly:
  <<: *common
  database: youapp_development
  username: readonly
  password: 
  host:     localhost

Finally:

$ rails console --sandbox

Will point to development_readonly database! Rocks!