Sha256: 87df7209be84ad65978462d539a55fb351d0f2895146ed32befcd2fc781fea0d
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
class DeviseCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.string :email, :null => false t.string :omniauth_uid, :null => false t.string :first_name, :null => false t.string :last_name, :null => false t.timestamps end add_index :users, :email, :unique => true add_index :users, :omniauth_uid, :unique => true end def self.down drop_table :users end end
Version data entries
5 entries across 5 versions & 1 rubygems