# Drupal 7 Migration Questions

**URL:** <https://meta.discourse.org/t/drupal-7-migration-questions/71539>\
**Category:** Development\
**Created:** [2017 年 10 月 6 日午後 6:17 UTC](https://meta.discourse.org/t/drupal-7-migration-questions/71539 "2017-10-06T18:17:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [2017 年 10 月 17 日午後 7:18 UTC](https://meta.discourse.org/t/drupal-7-migration-questions/71539/7 "2017-10-17T19:18:42Z")

</div>

> [@pfaffman](#):
>
> SiteSetting.disable\_emails = true  
> SiteSetting.allow\_index\_in\_robots\_txt=nil  
> SiteSetting.login\_required=true

@pfaffman - will that snippet work if I drop it within the import class something like this? Or is it better to run in the Rails console?

```ruby
    class ImportScripts::Drupal < ImportScripts::Base

      SiteSetting.disable_emails = true
      SiteSetting.allow_index_in_robots_txt = nil
      SiteSetting.login_required = true

      ##
      # TODO: the MySQL database name gets loaded here
      #
      DRUPAL_DB = ENV['DRUPAL_DB'] || "tmp_deleteme"

      ##
      # The `VID` is a vocabulary ID.
      #
      # <snip> ...
    end

```

---

_[View the full topic](https://meta.discourse.org/t/drupal-7-migration-questions/71539)._
