Sha256: 139b5f47ab0f302d5d13cb8fb0dbea0a66f4b234745b6ac5efd1b9af35051d6b

Contents?: true

Size: 210 Bytes

Versions: 38

Compression:

Stored size: 210 Bytes

Contents

class AddUsernameToUsers < ActiveRecord::Migration[5.1]
  def change
    add_column :users, :username, :string
    add_column :users, :fullname, :string

    add_index :users, :username, unique: true
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
chaltron-2.0.3 db/migrate/20140430143650_add_username_to_users.rb
chaltron-2.0.2 db/migrate/20140430143650_add_username_to_users.rb
chaltron-2.0.1 db/migrate/20140430143650_add_username_to_users.rb
chaltron-2.0.0 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.7 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.6 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.3.2 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.5 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.4 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.3.1 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.3 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.2 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.1 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.3.0 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.1.0 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.11 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.10 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.10 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.9 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.8 db/migrate/20140430143650_add_username_to_users.rb