Sha256: 949c53a9f7c5467cdc61524983c0698be52a99f212c9997a47054b88782c3a20
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
class CreateUsersTable < ActiveRecord::Migration def self.up create_table :users, :force => true do |t| t.timestamps t.string :login, :null => false t.string :email, :null => false t.string :crypted_password, :null => false t.string :password_salt, :null => false 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 end end def self.down drop_table :users end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resu-0.0.2 | lib/generators/resu/templates/migration.rb |
resu-0.0.1 | lib/generators/resu/templates/migration.rb |