提交 a1b1f91e 编写于 作者: J José Valim

Merge pull request #1380 from vijaydev/session_migration

Use 3.1 style migration for sessions table
class <%= migration_class_name %> < ActiveRecord::Migration
def up
def change
create_table :<%= session_table_name %> do |t|
t.string :session_id, :null => false
t.text :data
......@@ -9,8 +9,4 @@ def up
add_index :<%= session_table_name %>, :session_id
add_index :<%= session_table_name %>, :updated_at
end
def down
drop_table :<%= session_table_name %>
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册