Sha256: 526d367474b80cc377353b4471b9c1f19ba791fda443b96d114286a5cbab72e3

Contents?: true

Size: 388 Bytes

Versions: 97

Compression:

Stored size: 388 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= session_table_name %> do |t|
      t.string :session_id, :null => false
      t.text :data
      t.timestamps
    end

    add_index :<%= session_table_name %>, :session_id
    add_index :<%= session_table_name %>, :updated_at
  end

  def self.down
    drop_table :<%= session_table_name %>
  end
end

Version data entries

97 entries across 96 versions & 16 rubygems

Version Path
rails-2.2.3 lib/rails_generator/generators/components/session_migration/templates/migration.rb
webroar-0.2.2 src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.8.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
rails-2.3.4 lib/rails_generator/generators/components/session_migration/templates/migration.rb
rails-2.3.3 lib/rails_generator/generators/components/session_migration/templates/migration.rb
antfarm-0.3.0 rails/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
antfarm-0.4.0 rails/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
erails-2.1.2 lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.5.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.5 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.6 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.7 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.9 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.6.8 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.7.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.8.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
radiant-0.7.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
rails-2.0.4 lib/rails_generator/generators/components/session_migration/templates/migration.rb
rails-2.0.1 lib/rails_generator/generators/components/session_migration/templates/migration.rb
rails-2.0.2 lib/rails_generator/generators/components/session_migration/templates/migration.rb