サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
blog.widefix.com
TL;DR: use migration_data gem. Changing data in production is a common problem for Rails developers. Assume you have a Rails project. One day you decide to change the database schema and want to add some new column. Then you have to go through all existing records and change data to be actual according to this new schema. There are solutions to overcome this. But they have disadvantages. You will
When you see configuration examples in gems README like this: This real example you can find in the README of awesome gem assets_sync. AssetSync.configure do |config| config.fog_provider = 'AWS' config.fog_directory = ENV['FOG_DIRECTORY'] config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID'] config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] # Don't delete files from the store # config.exis
I’ve always wondered which argument pass to validates method for model which hash belongs_to association: association name or field name (Rails names it as a foreign_key). Do you know? Have you ever been asked this question? I know the answer for this question and of course I will share my idea with you in this post. Association name of foreign key? Assume we have to models: Account and User. Acco
There are some people who give advice to not use rails generators and create models, controllers and etc. things manually. I don’t agree with them and my advice here is to figure out deeply how they work and then make conclusion. In this post I will describe the most often and useful generator - it’s a model generator. I bet if you don’t use rails generators yet this post will make you to change y
This post describes how to deploy absolutely free bugtracker - Redmine to free hosting Heroku. That’s way you will have free bugtracker in the internet. There are many post in the internet that describe how to deploy old version of Redmine to Heroku, but I couldn’t find any information how to deploy new version of Redmine: Redmine 2. So if you have the same problem - you are welcome Changes for He
このページを最初にブックマークしてみませんか?
『blog.widefix.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く