Sha256: 119c99b0e42fc9f1b09fc3fe7d4ee11d0e54ec5eb4d48252f7ea8a8edf95df9b

Contents?: true

Size: 332 Bytes

Versions: 139

Compression:

Stored size: 332 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    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
end

Version data entries

139 entries across 108 versions & 15 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activerecord-3.2.22.5/lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22.5 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22.4 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22.3 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22.2 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22.1 lib/rails/generators/active_record/session_migration/templates/migration.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.22 lib/rails/generators/active_record/session_migration/templates/migration.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.12/lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.21 lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.20 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.19 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.18 lib/rails/generators/active_record/session_migration/templates/migration.rb
activerecord-3.2.17 lib/rails/generators/active_record/session_migration/templates/migration.rb