Sha256: ce2149532830848125193d666f762050841e52cfd14a4ae95093e877335e5d6b

Contents?: true

Size: 215 Bytes

Versions: 1

Compression:

Stored size: 215 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constructor-core-0.7.6 db/migrate/2_add_default_user.rb