diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/058_remove_sessions.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 12 |
2 files changed, 17 insertions, 11 deletions
diff --git a/db/migrate/058_remove_sessions.rb b/db/migrate/058_remove_sessions.rb new file mode 100644 index 000000000..316fcfdda --- /dev/null +++ b/db/migrate/058_remove_sessions.rb @@ -0,0 +1,16 @@ +class RemoveSessions < ActiveRecord::Migration + def self.up + drop_table :sessions + end + + def self.down + create_table :sessions do |t| + t.column :session_id, :string + t.column :data, :text + t.column :updated_at, :datetime + end + + add_index :sessions, :session_id + add_index :sessions, :updated_at + end +end diff --git a/db/schema.rb b/db/schema.rb index 66758a69c..6c71d1ef0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 57) do +ActiveRecord::Schema.define(:version => 58) do create_table "acts_as_xapian_jobs", :force => true do |t| t.string "model", :null => false @@ -118,16 +118,6 @@ ActiveRecord::Schema.define(:version => 57) do t.text "url_name" end - create_table "sessions", :force => true do |t| - t.string "session_id" - t.text "data" - t.datetime "updated_at" - t.datetime "created_at" - end - - add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id" - add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at" - create_table "track_things", :force => true do |t| t.integer "tracking_user_id", :null => false t.string "track_query", :null => false |