Prevent any database changes [closed] - ruby-on-rails

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am working on production ruby console. I need only get some data, not change. But sometimes, if I use '=' instead of '==', I change records. If any suggestions for disable any changes (may by all database commits) when I start to work only with analyzing?

You can try:
rails c ––sandbox
Look more information: http://edgeguides.rubyonrails.org/command_line.html#rails-console

You could create another database user with only SELECT rights to the db.
Then in your database.yml file add a line with that user.
Create an empty config/environments/analyzing.rb file for this environment.
analyzing:
username: your_user
password: your_pass
And then access the console with rails c analyzing

Related

Rails create defaults [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have an application I would like to sell to potential clients. When I deploy and install this application on their server I would like to have something that automatically creates some demo data.
Is there a way to do this? Or would that be done with seeds?
Yes, you can use rails scaffold to generate resources and yes you can use seeds to create demo data in your db.
You add any data that needs creating in your seeds.rb file and execute them using bundle exec rake db:seed.
see here for some examples on how to do it

deploy neo4j app in embedded mode on amazon [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I am using neo4j in embedded mode and want to deploy it on amazon,what are the options?
Where will the app create the database folder and how i can make database folder secure,robust in amazon?
If you're using it in embedded mode then you can choose where the database folder will be when you create the graph database:
new GraphDatabaseFactory().newEmbeddedDatabase("/choose/the/path")
Then just make sure only your application user is able to access that folder. Other access would be via your application.

Rails / Webbynode: Database push with postgresql? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
When I do
webbynode database push
Webbynode looks for a mysql database, how do I make it look for postgresql instead ?
My webbynode and the app are both setup for postgresql.
This is the error message I get:
ERROR: Invalid MySQL credentials for your local database (Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2))
Stopping taps server...
From webbynode:
The database pull and push feature is still in beta and it doesn't support PostgreSQL yet.

A tool to browse my rails app's database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want a way to comprehensively view:
1. what's going on in my database
2. what the schema looks like
Is there a good tool that lets you do that?
There's a gem Active Admin that lets you do that: http://activeadmin.info/documentation.html
And of course you can use any other Administration tool that lets you connect to your database, for instance Squirrel http://squirrel-sql.sourceforge.net/ which connects to various sql databases, sqlite among them.
For development and testing, I would say the preferred way of knowing your data is generating it automatically using tools like FactoryGirl or Faker and look into schema.rb for the schema.

Delphi & Access [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How can I use MS Access as a back-end database for a Delphi program?
Using MS Access from Delphi is straight forward. ADO is supported in Professional and Enterprise/Architect SKUs.
I would recommend saving the hash for your passwords in the database. this way, when the user enters a user name and password, you hash that password and compare it to what's stored in the database. This means you don't have an un-hashed version hanging around, so it's more secure.

Resources