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 | 阅读 3499 次 | 评论 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 | 阅读 1958 次 | 评论 0 条
浏览1760957次
文章归档
最新评论
  • 静夜思:过奖了
  • Furau:很少有速度这么快,界面清爽的免费博客啦,赞一个,希望永远安在。