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-1.0.7 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.9 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.6 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.5 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.4 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.8 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.7 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.3 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.2 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.1 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.6 db/migrate/20140430143650_add_username_to_users.rb
chaltron-1.0.0 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.5 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.4 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.3 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.2 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.1 db/migrate/20140430143650_add_username_to_users.rb
chaltron-0.2.0 db/migrate/20140430143650_add_username_to_users.rb