Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migrations location #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/en/how-to-develop-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ To deploy to Ganache we will have to create something called a migration.

Migrations are JavaScript files that help Truffle deploy the code to the blockchain. Note that `truffle init` created a special contract called `Migrations.sol`. Its role is to keep track of the changes you're making to your code. If you've ever used Rails, the concept should be familiar to you.

We'll start from the file `truffle init` already created for us- `./contracts/1_initial_migration.js`. Let's take a look at what's inside:
We'll start from the file `truffle init` already created for us- `./migrations/1_initial_migration.js`. Let's take a look at what's inside:

```js
const Migrations = artifacts.require("Migrations");
Expand All @@ -132,10 +132,10 @@ module.exports = function(deployer) {
To get ready for deployment, do:

```bash
cp ./contracts/1_initial_migration.js ./contracts/2_simple_store.js
cp ./migrations/1_initial_migration.js ./migrations/2_simple_store.js
```

Next, let's modify `./contracts/2_simple_store.js` to this:
Next, let's modify `./migrations/2_simple_store.js` to this:

```js
var SimpleStore = artifacts.require("./SimpleStore.sol");
Expand Down
6 changes: 3 additions & 3 deletions docs/ja/how-to-develop-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ To deploy to Ganache we will have to create something called a migration.

Migrations are JavaScript files that help Truffle deploy the code to the blockchain. Note that `truffle init` created a special contract called `Migrations.sol`. Its role is to keep track of the changes you're making to your code. If you've ever used Rails, the concept should be familiar to you.

We'll start from the file `truffle init` already created for us- `./contracts/1_initial_migration.js`. Let's take a look at what's inside:
We'll start from the file `truffle init` already created for us- `./migrations/1_initial_migration.js`. Let's take a look at what's inside:

```js
const Migrations = artifacts.require("Migrations");
Expand All @@ -132,10 +132,10 @@ module.exports = function(deployer) {
To get ready for deployment, do:

```bash
cp ./contracts/1_initial_migration.js ./contracts/2_simple_store.js
cp ./migrations/1_initial_migration.js ./migrations/2_simple_store.js
```

Next, let's modify `./contracts/2_simple_store.js` to this:
Next, let's modify `./migrations/2_simple_store.js` to this:

```js
var SimpleStore = artifacts.require("./SimpleStore.sol");
Expand Down
6 changes: 3 additions & 3 deletions docs/ko/how-to-develop-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ To deploy to Ganache we will have to create something called a migration.

Migrations are JavaScript files that help Truffle deploy the code to the blockchain. Note that `truffle init` created a special contract called `Migrations.sol`. Its role is to keep track of the changes you're making to your code. If you've ever used Rails, the concept should be familiar to you.

We'll start from the file `truffle init` already created for us- `./contracts/1_initial_migration.js`. Let's take a look at what's inside:
We'll start from the file `truffle init` already created for us- `./migrations/1_initial_migration.js`. Let's take a look at what's inside:

```js
const Migrations = artifacts.require("Migrations");
Expand All @@ -132,10 +132,10 @@ module.exports = function(deployer) {
To get ready for deployment, do:

```bash
cp ./contracts/1_initial_migration.js ./contracts/2_simple_store.js
cp ./migrations/1_initial_migration.js ./migrations/2_simple_store.js
```

Next, let's modify `./contracts/2_simple_store.js` to this:
Next, let's modify `./migrations/2_simple_store.js` to this:

```js
var SimpleStore = artifacts.require("./SimpleStore.sol");
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-CN/how-to-develop-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ To deploy to Ganache we will have to create something called a migration.

Migrations are JavaScript files that help Truffle deploy the code to the blockchain. Note that `truffle init` created a special contract called `Migrations.sol`. Its role is to keep track of the changes you're making to your code. If you've ever used Rails, the concept should be familiar to you.

We'll start from the file `truffle init` already created for us- `./contracts/1_initial_migration.js`. Let's take a look at what's inside:
We'll start from the file `truffle init` already created for us- `./migrations/1_initial_migration.js`. Let's take a look at what's inside:

```js
const Migrations = artifacts.require("Migrations");
Expand All @@ -132,10 +132,10 @@ module.exports = function(deployer) {
To get ready for deployment, do:

```bash
cp ./contracts/1_initial_migration.js ./contracts/2_simple_store.js
cp ./migrations/1_initial_migration.js ./migrations/2_simple_store.js
```

Next, let's modify `./contracts/2_simple_store.js` to this:
Next, let's modify `./migrations/2_simple_store.js` to this:

```js
var SimpleStore = artifacts.require("./SimpleStore.sol");
Expand Down