Skip to content

Instantly share code, notes, and snippets.

@sameera207
Last active August 29, 2015 14:06
Show Gist options
  • Save sameera207/58cbb30ed37ace9ea115 to your computer and use it in GitHub Desktop.
Save sameera207/58cbb30ed37ace9ea115 to your computer and use it in GitHub Desktop.
=== Rails migrations ===
In ruby/rails projects , the standard way of hadling database changes (add/edit tables, add/edit columns etc..)
through the migrations. this way we can hadle database changes easily.
=== where are the migrations ===
migrations are in the following folder
```ruby
<rails project folder>/db/migrate
```
Ex: Say we want to create a table as follows
id|name
--|----
1 | sam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment