Sha256: 640ff310fcc7ae4e4a03c9ef2f8f3c666b7927eeb27b39fda103f3d92d584f4c

Contents?: true

Size: 265 Bytes

Versions: 12

Compression:

Stored size: 265 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|

      t.string :email, null: false
      t.string :encrypted_password, null: false
      t.timestamps null: false
    end

    add_index :users, :email, unique: true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecrire-0.31.2 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.31.1 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.31.0 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.30.3 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.30.2 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.30.1 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.30.0 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.29.0 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.28.3 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.28.2 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.28.1 lib/ecrire/db/migrate/20131113200949_create_users.rb
ecrire-0.28.0 lib/ecrire/db/migrate/20131113200949_create_users.rb