Sha256: abb8ab3966b1954999a8106322e0cc3cabe8a79804c34770e450ffc6c30c2d35

Contents?: true

Size: 335 Bytes

Versions: 126

Compression:

Stored size: 335 Bytes

Contents

class AddSessions < ActiveRecord::Migration
  def self.up
    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

  def self.down
    drop_table :sessions
  end
end

Version data entries

126 entries across 126 versions & 7 rubygems

Version Path
trusty-cms-3.0.11 db/migrate/016_add_sessions.rb
trusty-cms-3.0.10 db/migrate/016_add_sessions.rb
trusty-cms-3.0.9 db/migrate/016_add_sessions.rb
trusty-cms-3.0.8 db/migrate/016_add_sessions.rb
trusty-cms-3.0.7 db/migrate/016_add_sessions.rb
trusty-cms-2.0.28 db/migrate/016_add_sessions.rb
trusty-cms-3.0.6 db/migrate/016_add_sessions.rb
trusty-cms-2.0.27 db/migrate/016_add_sessions.rb
trusty-cms-3.0.4 db/migrate/016_add_sessions.rb
trusty-cms-3.0.3 db/migrate/016_add_sessions.rb
trusty-cms-3.0.2 db/migrate/016_add_sessions.rb
trusty-cms-3.0.1 db/migrate/016_add_sessions.rb
trusty-cms-3.0.0 db/migrate/016_add_sessions.rb
trusty-cms-2.0.26 db/migrate/016_add_sessions.rb
trusty-cms-2.0.25 db/migrate/016_add_sessions.rb
trusty-cms-2.0.24 db/migrate/016_add_sessions.rb
trusty-cms-2.0.23 db/migrate/016_add_sessions.rb
trusty-cms-2.0.22 db/migrate/016_add_sessions.rb
trusty-cms-2.0.21 db/migrate/016_add_sessions.rb
trusty-cms-2.0.21.alpha db/migrate/016_add_sessions.rb