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 | 阅读 3335 次 | 评论 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 | 阅读 1835 次 | 评论 0 条
浏览1692582次
文章归档
最新评论