going by <http://wiki.rubyonrails.org/rails/pages/
, I think that I have my table names in the schema
squared away, but I'm not convinced. For a many-to-many with ThroughAssociations between tables foo and bar, is the join table created named foo_bars by convention? If the table name is foo_bars, then the corresponding model in app/models would be FooBar, is that right?
If FooBar is created by me, then, going by the comments in schema.rb, a migration command was the correct way to create the schema.
I'm just not convinced that I'm following convention on this.
C:\code\strawr\db> C:\code\strawr\db> C:\code\strawr\db>type schema.rb # This file is autogenerated. Instead of editing this file, please use the # migrations feature of ActiveRecord to incrementally modify your database, and # then regenerate this schema definition.
ActiveRecord::Schema.define(:version => 3) do
create_table "categories", :force => true do |t| t.column "category", :string, :default => "NULL" end
create_table "category_feeds", :force => true do |t| t.column "category_id", :integer, :default => 0 t.column "feed_id", :integer, :default => 0 end
create_table "feeds", :force => true do |t| t.column "feed", :string, :default => "NULL" end
end
C:\code\strawr\db>
thanks,
Thufir