Sha256: 01e51da10ee25a0bc7bc4b95d15fa8924d13842ad3fa82142a55f447b0c9e73b
Contents?: true
Size: 1.25 KB
Versions: 14
Compression:
Stored size: 1.25 KB
Contents
# -*- coding: utf-8 -*- class <%= class_name %> < ActiveRecord::Migration def self.up create_table :open_id_credentials do |t| t.datetime :created_at, :null => false t.integer :user_id, :null => false t.string :identity_url, :null => false, :limit => 200 t.datetime :loggedin_at, :null => true end add_index :open_id_credentials, :user_id add_index :open_id_credentials, :identity_url, :unique => true create_table :email_credentials do |t| t.datetime :created_at, :null => false t.string :activation_token, :null => false, :limit => 40 t.integer :user_id, :null => false t.string :email, :null => false, :limit => 200 t.string :hashed_password, :null => false, :limit => 8 + 1 + 64 t.datetime :activated_at, :null => true t.datetime :loggedin_at, :null => true end add_index :email_credentials, :created_at add_index :email_credentials, :activation_token, :unique => true add_index :email_credentials, :user_id add_index :email_credentials, :email, :unique => true add_index :email_credentials, :activated_at end def self.down drop_table :open_id_credentials drop_table :email_credentials end end
Version data entries
14 entries across 14 versions & 2 rubygems