Sha256: e847f085b9bb5e85a8e92854a5782d1abdf4b20ef77b487a6278d1048177c46d

Contents?: true

Size: 347 Bytes

Versions: 11

Compression:

Stored size: 347 Bytes

Contents

class DatabaseSessions < ActiveRecord::Migration
  def self.up
    create_table :sessions do |t|
      t.column :session_id, :string
      t.column :data,       :text
      t.column :created_at, :datetime
    end
    add_index :sessions, :session_id
  end

  def self.down
    remove_index :sessions, :session_id
    drop_table :sessions
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
elucid-merb_activerecord-1.1.0.pre lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.10 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.11 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.12 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.13 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.7 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.8 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.9 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-1.0.0.1 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-0.9.6 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb
merb_activerecord-1.0.0 lib/generators/templates/session_migration/schema/migrations/%version%_database_sessions.rb