<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andres Becker</title>
    <description>The latest articles on DEV Community by Andres Becker (@andresbecker).</description>
    <link>https://dev.to/andresbecker</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F799011%2F5a4369f0-91fc-4a9b-859e-bfe547fe68aa.jpeg</url>
      <title>DEV Community: Andres Becker</title>
      <link>https://dev.to/andresbecker</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andresbecker"/>
    <language>en</language>
    <item>
      <title>Creating a new database in Rails</title>
      <dc:creator>Andres Becker</dc:creator>
      <pubDate>Fri, 09 Dec 2022 15:43:17 +0000</pubDate>
      <link>https://dev.to/andresbecker/creating-a-new-database-in-rails-2b2e</link>
      <guid>https://dev.to/andresbecker/creating-a-new-database-in-rails-2b2e</guid>
      <description>&lt;p&gt;To create a new database in Rails, you can use the rails db:create command. This will create a new database for your Rails application using the database adapter and settings specified in your &lt;code&gt;config/database.yml&lt;/code&gt; file. For example, if you are using SQLite as your database, you would run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rails db:create
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a new database for your Rails application in the db directory — SQLite by default, but you may have configured a different database already, such as Postgresql. You can then use the &lt;code&gt;rails db:migrate command&lt;/code&gt; to run any pending database migrations, which will set up the necessary tables and schema for your application.&lt;/p&gt;

&lt;p&gt;Keep in mind that you will need to have a database server installed and running on your system in order to use this command. If you are using a database other than SQLite, you will also need to ensure that the necessary database drivers and libraries are installed on your system.&lt;/p&gt;

</description>
      <category>rails</category>
      <category>ruby</category>
      <category>database</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
