Sha256: b8046f5fc3a27a5bca6eb70a739b2853452f90402e14450d5d2203c047f4efff

Contents?: true

Size: 340 Bytes

Versions: 16

Compression:

Stored size: 340 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
trusty-cms-3.3.2 db/migrate/016_add_sessions.rb
trusty-cms-3.3.1 db/migrate/016_add_sessions.rb
trusty-cms-3.2.1 db/migrate/016_add_sessions.rb
trusty-cms-3.3.0 db/migrate/016_add_sessions.rb
trusty-cms-3.2.0 db/migrate/016_add_sessions.rb
trusty-cms-3.1.11 db/migrate/016_add_sessions.rb
trusty-cms-3.1.10 db/migrate/016_add_sessions.rb
trusty-cms-3.1.9 db/migrate/016_add_sessions.rb
trusty-cms-3.1.8 db/migrate/016_add_sessions.rb
trusty-cms-3.1.7 db/migrate/016_add_sessions.rb
trusty-cms-3.1.6 db/migrate/016_add_sessions.rb
trusty-cms-3.1.5 db/migrate/016_add_sessions.rb
trusty-cms-3.1.3 db/migrate/016_add_sessions.rb
trusty-cms-3.1.2 db/migrate/016_add_sessions.rb
trusty-cms-3.1.1 db/migrate/016_add_sessions.rb
trusty-cms-3.1.0 db/migrate/016_add_sessions.rb