Sha256: 1e94bbb7627f8825fd57dcb843301400a472045e66a493d95fc996ed01c53307

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

class AddSessionsTable < Sequel::Migration

  def up
    create_table :sessions do
      primary_key :id
      varchar     :session_id, :size => 64, :unique => true
      timestamp   :created_at
      text        :data
    end
  end
  
  def down
    execute "DROP TABLE sessions"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
merb_sequel-0.4.2 lib/merb/session/001_add_sessions_table.rb
merb_sequel-0.9.2 sequel_generators/database_sessions_migration/templates/sessions_migration.erb
merb_sequel-0.4.3 lib/merb/session/001_add_sessions_table.rb
merb_sequel-0.5 lib/merb/session/001_add_sessions_table.rb