Sha256: 2e3676ec213d337a0201696858caf4309c1db70e6fec996b278ce78613d51808

Contents?: true

Size: 340 Bytes

Versions: 106

Compression:

Stored size: 340 Bytes

Contents

class AddSessions < ActiveRecord::Migration[5.2]
  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

106 entries across 106 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 db/migrate/016_add_sessions.rb
trusty-cms-7.0.2 db/migrate/016_add_sessions.rb
trusty-cms-7.0.1 db/migrate/016_add_sessions.rb
trusty-cms-7.0.0 db/migrate/016_add_sessions.rb
trusty-cms-6.3 db/migrate/016_add_sessions.rb
trusty-cms-6.2.1 db/migrate/016_add_sessions.rb
trusty-cms-6.2.2.1 db/migrate/016_add_sessions.rb
trusty-cms-6.2.0 db/migrate/016_add_sessions.rb
trusty-cms-6.1.2 db/migrate/016_add_sessions.rb
trusty-cms-6.1.1 db/migrate/016_add_sessions.rb
trusty-cms-6.0.5 db/migrate/016_add_sessions.rb
trusty-cms-6.0.4 db/migrate/016_add_sessions.rb
trusty-cms-6.0.3 db/migrate/016_add_sessions.rb
trusty-cms-6.0.2 db/migrate/016_add_sessions.rb
trusty-cms-6.0.1 db/migrate/016_add_sessions.rb
trusty-cms-5.6.1 db/migrate/016_add_sessions.rb
trusty-cms-6.0.0 db/migrate/016_add_sessions.rb
trusty-cms-5.6.0 db/migrate/016_add_sessions.rb
trusty-cms-5.5.9 db/migrate/016_add_sessions.rb
trusty-cms-5.5.8 db/migrate/016_add_sessions.rb