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-5.2.3 db/migrate/016_add_sessions.rb
trusty-cms-5.2.2 db/migrate/016_add_sessions.rb
trusty-cms-5.2.1 db/migrate/016_add_sessions.rb
trusty-cms-5.2.0 db/migrate/016_add_sessions.rb
trusty-cms-5.1.0 db/migrate/016_add_sessions.rb
trusty-cms-5.0.9 db/migrate/016_add_sessions.rb
trusty-cms-5.0.7 db/migrate/016_add_sessions.rb
trusty-cms-5.0.6 db/migrate/016_add_sessions.rb
trusty-cms-5.0.5 db/migrate/016_add_sessions.rb
trusty-cms-5.0.4 db/migrate/016_add_sessions.rb
trusty-cms-5.0.3 db/migrate/016_add_sessions.rb
trusty-cms-5.0.2 db/migrate/016_add_sessions.rb
trusty-cms-5.0.1 db/migrate/016_add_sessions.rb
trusty-cms-4.3.5 db/migrate/016_add_sessions.rb
trusty-cms-5.0.0 db/migrate/016_add_sessions.rb
trusty-cms-4.3.4 db/migrate/016_add_sessions.rb
trusty-cms-4.3.3 db/migrate/016_add_sessions.rb
trusty-cms-4.3.2 db/migrate/016_add_sessions.rb
trusty-cms-4.3.1 db/migrate/016_add_sessions.rb
trusty-cms-4.3 db/migrate/016_add_sessions.rb