2015-02-21から1日間の記事一覧
Rails4.1.4 あたり class CreateJoinTableTodoPost < ActiveRecord::Migration def change create_join_table :user_posts, user_todos do |t| end end end をmigrateすると user_posts_user_todos というテーブルが作られる。 でもhas_and_belongs_to_many …
Rails4.1.4 あたり class CreateJoinTableTodoPost < ActiveRecord::Migration def change create_join_table :user_posts, user_todos do |t| end end end をmigrateすると user_posts_user_todos というテーブルが作られる。 でもhas_and_belongs_to_many …