Sha256: 706d65b03592a7a3dbdd3704d66e076858c93474b638dcf352198fa398e5ce62

Contents?: true

Size: 566 Bytes

Versions: 27

Compression:

Stored size: 566 Bytes

Contents

class AddRoroacmsTerms < ActiveRecord::Migration

	def self.up

    create_table(:roroacms_terms) do |t|
      t.string   "name"
	    t.string   "slug"
	    t.text     "structured_url"
	    t.text     "description"
	    t.integer  "parent_id"
	    t.datetime "created_at",     null: false
	    t.datetime "updated_at",     null: false
	    t.text     "cover_image"
	    t.string   "ancestry"
    end

    add_index "roroacms_terms", ["ancestry"], name: "index_terms_on_ancestry", using: :btree
	    
	end

  def self.down

    drop_table :roroacms_terms

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
roroacms-0.0.7.4 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.7.3 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.7.2 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.7.1 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.7 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.2 db/migrate/20140802084717_add_roroacms_terms.rb
roroacms-0.0.1 db/migrate/20140802084717_add_roroacms_terms.rb