Sha256: 42497982a1d692e3f6e6c308792ee96aab2e115202443e246c0e916805794aea
Contents?: true
Size: 372 Bytes
Versions: 295
Compression:
Stored size: 372 Bytes
Contents
class AddSessionsTable < ActiveRecord::Migration def change if !ActiveRecord::Base.connection.table_exists?('sessions') create_table :sessions do |t| t.string :session_id, :null => false t.text :data t.timestamps end add_index :sessions, :session_id, :unique => true add_index :sessions, :updated_at end end end
Version data entries
295 entries across 295 versions & 4 rubygems