Sha256: e6487d4642c197acbdd43c33e03416d26d12f64fa83a0c1974411d08c35c1ed5

Contents?: true

Size: 1.1 KB

Versions: 24

Compression:

Stored size: 1.1 KB

Contents

# encoding: UTF-8

# Copyright 2011 innoQ Deutschland GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

if User.where(:email => 'admin@iqvoc').none?
  User.create!(
    :forename => 'Admin',
    :surname => 'Istrator',
    :email => 'admin@iqvoc',
    :password => 'admin',
    :password_confirmation => 'admin',
    :active => true,
    :role => "administrator")
end

if User.where(:email => 'demo@iqvoc').none?
  User.create!(
    :forename => 'Demo',
    :surname => 'User',
    :email => 'demo@iqvoc',
    :password => 'cooluri',
    :password_confirmation => 'cooluri',
    :active => true,
    :role => "reader")
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
iqvoc-3.2.11 db/seeds.rb
iqvoc-3.2.10 db/seeds.rb
iqvoc-3.2.9 db/seeds.rb
iqvoc-3.2.8 db/seeds.rb
iqvoc-4.0.0 db/seeds.rb
iqvoc-3.5.7 db/seeds.rb
iqvoc-3.5.6 db/seeds.rb
iqvoc-3.5.5 db/seeds.rb
iqvoc-3.5.4 db/seeds.rb
iqvoc-3.2.7 db/seeds.rb
iqvoc-3.5.3 db/seeds.rb
iqvoc-3.5.2 db/seeds.rb
iqvoc-3.5.1 db/seeds.rb
iqvoc-3.5.0 db/seeds.rb
iqvoc-3.4.0 db/seeds.rb
iqvoc-3.3.4 db/seeds.rb
iqvoc-3.3.3 db/seeds.rb
iqvoc-3.3.2 db/seeds.rb
iqvoc-3.3.1 db/seeds.rb
iqvoc-3.3.0 db/seeds.rb