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