Sha256: db18834c99b071a3eba6af025587fec0164a2506b48ff1838d38dbb38761d88a

Contents?: true

Size: 531 Bytes

Versions: 8

Compression:

Stored size: 531 Bytes

Contents

class CreateSessions < ActiveRecord::Migration[4.2]
  def self.up
    # Set the following global variable to show that we are migrating
    # from a brand new database. Future migrations can detect this, and
    # avoid running unnecessary code.
    $FFCRM_NEW_DATABASE = true

    create_table :sessions do |t|
      t.string :session_id, null: false
      t.text :data
      t.timestamps
    end

    add_index :sessions, :session_id
    add_index :sessions, :updated_at
  end

  def self.down
    drop_table :sessions
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fat_free_crm-0.15.2 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.16.4 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.15.1 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.16.3 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.16.2 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.16.1 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.16.0 db/migrate/20100928030598_create_sessions.rb
fat_free_crm-0.15.0 db/migrate/20100928030598_create_sessions.rb