rails用generate为两个模型创建has_and_belongs_to_many中间表

Where: class Teacher < ActiveRecord::Base has_and_belongs_to_many :students end and class Student < ActiveRecord::Base has_and_belongs_to_many :teachers end for rails 4: rails generate migration CreateJoinTableStudentTeacher student teacher for rail...
Ruby | 2015-06-30 09:57 | 阅读 5002 次 | 评论 0 条

安装elasticsearch后的相关配置信息

~ gs$ brew install elasticsearch ==> Downloading https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch ######################################################################## 100.0% curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. ...
Linux | 2015-06-17 15:20 | 阅读 2959 次 | 评论 0 条
浏览2776845次
文章归档