Sha256: 29632106526ce25cc24b696f22a1cd3ecd0c285d7e960493f729927df234b95d
Contents?: true
Size: 451 Bytes
Versions: 16
Compression:
Stored size: 451 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :email t.string :password t.string :first_name t.string :last_name t.string :gender t.string :mugshot t.string :locale t.string :link t.timestamps end add_index :users, [:email] add_index :users, [:email, :password] end def self.down drop_table :users end end
Version data entries
16 entries across 16 versions & 2 rubygems