lib/rails_generator/generators/components/session_migration/templates/migration.rb in rails-1.2.6 vs lib/rails_generator/generators/components/session_migration/templates/migration.rb in rails-2.0.0

- old
+ new

@@ -1,10 +1,10 @@ class <%= class_name %> < ActiveRecord::Migration def self.up create_table :<%= session_table_name %> do |t| - t.column :session_id, :string - t.column :data, :text - t.column :updated_at, :datetime + t.string :session_id, :null => false + t.text :data + t.timestamps end add_index :<%= session_table_name %>, :session_id add_index :<%= session_table_name %>, :updated_at end