Sha256: 9ceac436de266f19f478941f4a6d8e391f569baf3e9bcfa3f86519bcaf9136f8
Contents?: true
Size: 421 Bytes
Versions: 20
Compression:
Stored size: 421 Bytes
Contents
class CreateTaxons < ActiveRecord::Migration def self.up create_table :taxons do |t| t.integer :taxonomy_id, :null => false, :references => :taxonomies t.integer :parent_id, :references => :taxons t.integer :position, :default => 0 t.string :name, :null => false t.string :presentation, :null => false t.timestamps end end def self.down drop_table :taxons end end
Version data entries
20 entries across 20 versions & 3 rubygems