Sha256: f7b4052bd623d797195d89c03e27eede1fe678b2a44839b22b31a473f5a945f7

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

append_file "db/seeds.rb", <<-EOF
user = User.create! username: "admin", email: "admin@example.com", password: "password"
Role::USER_ROLES.each do |role|
  user.grant role
end
puts "sign in with:\n\tusername: admin\n\tpassword: password"
EOF
rake "db:seed"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
crosstie-0.0.6 lib/crosstie/templates/seeds.rb
crosstie-0.0.5 lib/crosstie/templates/seeds.rb
crosstie-0.0.4 lib/crosstie/templates/seeds.rb
crosstie-0.0.3 lib/crosstie/templates/seeds.rb
crosstie-0.0.2 lib/crosstie/templates/seeds.rb