Sha256: 319063336c5e0dfb2a9d2e2932cb3ebdd1f772860f2040daa92700e73a17a965

Contents?: true

Size: 219 Bytes

Versions: 27

Compression:

Stored size: 219 Bytes

Contents

class AddDefaultUser < ActiveRecord::Migration
  def self.up
    ConstructorCore::User.create!(:email => "admin@admin.ru", :password => "123qweASD")
  end

  def self.down
    ConstructorCore::User.delete_all
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
constructor-core-1.0.0beta2 db/migrate/2_add_default_user.rb
constructor-core-1.0.0beta1 db/migrate/2_add_default_user.rb
constructor-core-0.9.1 db/migrate/2_add_default_user.rb
constructor-core-0.9.0 db/migrate/2_add_default_user.rb
constructor-core-0.8.19 db/migrate/2_add_default_user.rb
constructor-core-0.8.18 db/migrate/2_add_default_user.rb
constructor-core-0.8.17 db/migrate/2_add_default_user.rb
constructor-core-0.8.16 db/migrate/2_add_default_user.rb
constructor-core-0.8.15 db/migrate/2_add_default_user.rb
constructor-core-0.8.14 db/migrate/2_add_default_user.rb
constructor-core-0.8.13 db/migrate/2_add_default_user.rb
constructor-core-0.8.12 db/migrate/2_add_default_user.rb
constructor-core-0.8.11 db/migrate/2_add_default_user.rb
constructor-core-0.8.10 db/migrate/2_add_default_user.rb
constructor-core-0.8.8 db/migrate/2_add_default_user.rb
constructor-core-0.8.7 db/migrate/2_add_default_user.rb
constructor-core-0.8.6 db/migrate/2_add_default_user.rb
constructor-core-0.8.5 db/migrate/2_add_default_user.rb
constructor-core-0.8.4 db/migrate/2_add_default_user.rb
constructor-core-0.8.3 db/migrate/2_add_default_user.rb