]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/003_sql_session_store_setup.rb
Fix server error when user#reset_password called with no token
[rails.git] / db / migrate / 003_sql_session_store_setup.rb
index 7b1c75479ac0144798004ddae61f010478aa96a9..5853d4d000a65e3f8cc9e7f6c101f4013559d9a9 100644 (file)
@@ -1,6 +1,8 @@
+require 'migrate'
+
 class SqlSessionStoreSetup < ActiveRecord::Migration
   def self.up
 class SqlSessionStoreSetup < ActiveRecord::Migration
   def self.up
-    create_table "sessions", :options => "ENGINE=InnoDB" do |t|
+    create_table "sessions", :options => innodb_option do |t|
       t.column "session_id", :string
       t.column "data",       :text
       t.column "created_at", :timestamp
       t.column "session_id", :string
       t.column "data",       :text
       t.column "created_at", :timestamp