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 | 阅读 4881 次 | 评论 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 | 阅读 2841 次 | 评论 0 条
浏览2646203次
文章归档
最新评论
  • 静夜思:>>> import django >>> django <module 'django'...
  • 限费情电:这个东西在那里昂?
  • 交触到辉:试了可以,谢谢!
  • 周把首简:好像只能定期手动关闭