# # The code below create a table name example # # As best practice name this file with a prefix index like 001_create_example.rb and the next migration 002.… and so on, this will help you to keep track over the time. # # Please refer to Rails’ documentation # # class CreateExample < ActiveRecord::Migration # def self.up # primary key id is created automatically by ActiveRecord::Migration # create_table :examples do |t| # t.string :gene_name # t.string :tag # t.string :type # end # # add_index :examples, :gene_name # end # # def self.down # drop_table :examples # end # end