Sha256: b5e79a67288266dc6f47c1cc79307aa59a1b85b631a43b7c051581d23df5378e
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) puts 'SETTING UP DEFAULT USER LOGIN' user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please', :confirmed_at => DateTime.now puts 'New user created: ' << user.name
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
citygate-0.0.3 | db/seeds.rb |
citygate-0.0.2 | db/seeds.rb |
citygate-0.0.1 | db/seeds.rb |