Sha256: 53bdaa8c6dec82d4d7d077209393fdf0c3a015276eed439724f4c6e2413f8b71

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

class AddSessionsTable < ActiveRecord::Migration
  def self.up
    create_table :sessions, :force => true do |t|
        t.column :session_id,      :string,  :limit => 32
        t.column :created_at,  :datetime
        t.column :data,       :text
    end
     add_index "sessions", ["session_id"], :name => "session_id_index"
  end

  def self.down
    drop_table :sessions
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
merb-0.3.0 examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb
merb-0.3.1 examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb
merb-0.3.3 examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb
merb-0.3.4 examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb