Sha256: 69d44325100e0bc9fdaa0fd0239eede4987ef8da13444da12c65f97012e96857
Contents?: true
Size: 427 Bytes
Versions: 24
Compression:
Stored size: 427 Bytes
Contents
class CreateApiv1Taxons < ActiveRecord::Migration def change create_table :apiv1_taxons do |t| t.references :parent, index: true t.string :root_genus, null: false t.string :taxon_name, null: false t.string :permalink, null: false t.string :explanation t.datetime :first_child_at t.timestamps end add_index :apiv1_taxons, [:permalink, :root_genus], unique: true end end
Version data entries
24 entries across 24 versions & 1 rubygems