Files
onemdm-server/db/seeds.rb
Yedhu Krishnan 9c4800e217 Create device model and setup devise, activeadmin and rspec!
- with attributes: model, imei_number, unique_id and access_token
 - access_token is automatically generated on create
2015-10-16 18:50:39 +05:30

8 lines
445 B
Ruby

# 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)
AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password')