Sha256: a36dc8e3380e24bfd5678682450866f1b7f7d8aab0558effaa970c7e9f13b8bf

Contents?: true

Size: 171 Bytes

Versions: 1

Compression:

Stored size: 171 Bytes

Contents

class AddRootUser < ActiveRecord::Migration
  def up
    User.find_or_create_by_username! 'root'
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elzar-0.2.0 spec/fixtures/rails_integration_template/add_root_user.rb