Sha256: e99181b7130001c0bcf980e96c269a7d0f9939edc55a0e134c36e558ed372986
Contents?: true
Size: 630 Bytes
Versions: 11
Compression:
Stored size: 630 Bytes
Contents
# # 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
Version data entries
11 entries across 11 versions & 1 rubygems