提交 995ea003 编写于 作者: V Vijay Dev

Use change in place of up and down in sessions table migration

上级 2fd7ea97
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.
先完成此消息的编辑!
想要评论请 注册