{"size": 368, "ext": "js", "max_stars_repo_path": "src/server/migrations/20210427152901_create_questions_table.js", "max_stars_repo_name": "HackYourFuture-CPH/Guide-IT", "max_stars_repo_stars_event_min_datetime": "2021-04-18T14:29:27.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-13T13:01:36.000Z", "max_issues_repo_path": "src/server/migrations/20210427152901_create_questions_table.js", "max_issues_repo_name": "HackYourFuture-CPH/Guide-IT", "max_issues_repo_issues_event_min_datetime": "2021-04-19T12:20:13.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-02T12:10:30.000Z", "max_forks_repo_path": "src/server/migrations/20210427152901_create_questions_table.js", "max_forks_repo_name": "HackYourFuture-CPH/Guide-IT", "max_forks_repo_forks_event_min_datetime": "2021-05-22T22:02:56.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-22T22:02:56.000Z"}
{"max_stars_count": 2, "max_issues_count": 145, "max_forks_count": 1, "avg_line_length": 28.3076923077, "max_line_length": 74, "alphanum_fraction": 0.6820652174}
// This is a migration for questions table.
exports.up = function (knex) {
  return knex.schema.createTable('questions', (table) => {
    table.increments();
    table.string('question').notNullable();
    table.datetime('created_date').defaultTo(knex.fn.now()).notNullable();
  });
};

exports.down = function (knex) {
  return knex.schema.dropTable('questions');
};
