Sha256: 9aa021df4541a3f4398e45f34a70dd0b8004e3e9f670948d07c981810655e5b3
Contents?: true
Size: 936 Bytes
Versions: 4
Compression:
Stored size: 936 Bytes
Contents
class Create<%= user_plural_class_name %> < ActiveRecord::Migration def self.up create_table :<%= user_plural_name %> do |t| t.string :email t.string :first_name t.string :last_name t.string :language, :default => "en" t.string :crypted_password, :limit => 128 t.string :password_salt, :limit => 20 t.string :persistence_token, :limit => 128 t.string :single_access_token, :limit => 20 t.string :perishable_token, :limit => 20 t.integer :roles_mask, :default => 1 t.integer :login_count, :null => false, :default => 0 t.integer :failed_login_count, :null => false, :default => 0 t.datetime :last_request_at t.datetime :current_login_at t.datetime :last_login_at t.string :current_login_ip t.string :last_login_ip t.timestamps end end def self.down drop_table :<%= user_plural_name %> end end
Version data entries
4 entries across 4 versions & 1 rubygems