Sha256: aa34f1b350d9aa9db87e34927d4408a49d5149b5aea16a0830db74b0f9b38e86
Contents?: true
Size: 576 Bytes
Versions: 5
Compression:
Stored size: 576 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :openid_identifier t.string :persistence_token, :null => false t.integer :login_count, :default => 0, :null => false t.datetime :last_request_at t.datetime :last_login_at t.datetime :current_login_at t.string :last_login_ip t.string :current_login_ip t.timestamps end add_index :users, :openid_identifier end def self.down remove_index :users, :openid_identifier drop_table :users end end
Version data entries
5 entries across 5 versions & 1 rubygems