Sha256: a0ab97be2bb97d4ca0e3b789a46346d73e3e568ae686a10e0a02067dadf4748a

Contents?: true

Size: 409 Bytes

Versions: 79

Compression:

Stored size: 409 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= session_table_name %> do |t|
      t.column :session_id, :string
      t.column :data, :text
      t.column :updated_at, :datetime
    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

79 entries across 79 versions & 6 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
authorails-1.0.0 lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.0.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.0.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.0.2 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.0.5 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.0.4 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.1.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.1.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.1.2 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.2.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.2.1 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb
backlog-0.3.0 vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb