Changeset 205
- Timestamp:
- 09/23/2007 16:02:08 (15 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
examples/blog.rb (modified) (2 diffs)
-
examples/campsh.rb (modified) (1 diff)
-
lib/camping/session.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/blog.rb
r187 r205 19 19 def self.up 20 20 create_table :blog_posts do |t| 21 t.column :id, :integer, :null => false22 21 t.column :user_id, :integer, :null => false 23 22 t.column :title, :string, :limit => 255 … … 25 24 end 26 25 create_table :blog_users do |t| 27 t.column :id, :integer, :null => false28 26 t.column :username, :string 29 27 t.column :password, :string 30 28 end 31 29 create_table :blog_comments do |t| 32 t.column :id, :integer, :null => false33 30 t.column :post_id, :integer, :null => false 34 31 t.column :username, :string -
trunk/examples/campsh.rb
r187 r205 36 36 def self.up 37 37 create_table :campsh_commands do |t| 38 t.column :id, :integer, :null => false39 38 t.column :author, :string, :limit => 40 40 39 t.column :name, :string, :limit => 255 -
trunk/lib/camping/session.rb
r183 r205 64 64 ActiveRecord::Schema.define do 65 65 create_table :sessions, :force => true, :id => false do |t| 66 t.column :id, :integer, :null => false, :primary_key => true, :auto_increment => true67 66 t.column :hashid, :string, :limit => 32 68 67 t.column :created_at, :datetime
