Sha256: 819c19a549defe5bf51636226378ec5f40734a8a6f7b34219d26ba193e008142

Contents?: true

Size: 470 Bytes

Versions: 8

Compression:

Stored size: 470 Bytes

Contents

class CreateNoteeUsers < ActiveRecord::Migration
  def change
    create_table :notee_users do |t|
      t.string :name, null: false
      t.string :email, null: false
      t.string :encrypted_password, null: false
      t.text :profile
      t.string :profile_img
      t.integer :role, null: false
      t.boolean :is_deleted, null: false, default: false

      t.timestamps null: false
    end

    add_index :notee_users, [:name, :email], :unique => true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
notee-1.0.7 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.6 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.5 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.4 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.3 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.2 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.1 db/migrate/20160809145754_create_notee_users.rb
notee-1.0.0 db/migrate/20160809145754_create_notee_users.rb