Hi!
I was looking into the code of the 005_create_forums.rb migration, it is
also present in the last stable release.
Here it is:
class CreateForums < ActiveRecord::Migration
class Forum < ActiveRecord::Base
end
def self.up
create_table :forums do |t|
t.string :name
t.text :description
t.integer :topics_count, :null => false, :default => 0
t.timestamps
end
Forum.create!(:name => "Discussion forum",
:description => "The main forum")
end
def self.down
drop_table :forums
end
end
What does those lines mean?
class Forum < ActiveRecord::Base
end
Thx
Thomas
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---