Create your own git server

GIT, 2015-06-16 22:56:11 UTC
Using Git to create an open software can be done by creating an open repository at github.com and this work is relatively easy because the server is handled by github.com so developers only need to think of the local repository. Using github paid version prevent code accessed in a non-open project. But on a private project, or developers with barely enough capital, certain other reasons can choose to install Git on the server itself.<br />
Share:     

Override Rails Table name

MySQL, Ruby on Rails, 2015-05-24 01:48:39 UTC
I don't know exactly what does this name in Rails. But, I named it override table name in Rails. The case is very simple, let say We already have a table name in the database. The database name is email_dr_pengunjung. When We create it with rails g model command, Rails simple add s in the end of table name. So, the table name is email_dr_pengunjungs and the migration file like 20150523233040_create_email_dr_pengunjungs.rb $ rails g model EmailDrPengunjung Just open up 20150523233040_create_email_dr_pengunjungs.rb to force using 'the old table name'. And add these lines; class CreateEmailDrPengunjungs < ActiveRecord::Migration def change self.connection.execute %Q( CREATE TABLE IF NOT EXISTS `email_dr_pengunjung` ( `id` int(10) NOT NULL AUTO_INCREMENT, `email` varchar(255) DEFAULT NULL, `nama_lengkap` varchar(255) DEFAULT NULL,
Share: