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-1.1.11 db/migrate/016_add_sessions.rb
trusty-cms-1.1.10 db/migrate/016_add_sessions.rb
trusty-cms-1.1.9 db/migrate/016_add_sessions.rb
trusty-cms-1.1.8 db/migrate/016_add_sessions.rb
trusty-cms-1.1.7 db/migrate/016_add_sessions.rb
trusty-cms-1.1.6 db/migrate/016_add_sessions.rb
trusty-cms-1.1.5 db/migrate/016_add_sessions.rb
trusty-cms-1.1.4 db/migrate/016_add_sessions.rb
trusty-cms-1.1.3 db/migrate/016_add_sessions.rb
trusty-cms-1.1.2 db/migrate/016_add_sessions.rb
trusty-cms-1.1.1 db/migrate/016_add_sessions.rb
trusty-cms-1.1.0 db/migrate/016_add_sessions.rb
trusty-cms-1.1.0.rc1 db/migrate/016_add_sessions.rb
trusty-cms-1.0.1 db/migrate/016_add_sessions.rb
trusty-cms-1.0.0 db/migrate/016_add_sessions.rb
radiant-1.1.4 db/migrate/016_add_sessions.rb
radiant-1.1.3 db/migrate/016_add_sessions.rb
radiant-1.1.2 db/migrate/016_add_sessions.rb
radiant-1.1.1 db/migrate/016_add_sessions.rb
radiant-1.1.0 db/migrate/016_add_sessions.rb