created traits and front end for editing traits

This commit is contained in:
Senad Uka
2015-02-01 05:21:18 +01:00
parent 35cc279527
commit d911d8ca63
12 changed files with 6347 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddTraitsToItem < ActiveRecord::Migration
def change
add_column :items, :traits, :json
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150130041842) do
ActiveRecord::Schema.define(version: 20150131061353) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -35,6 +35,7 @@ ActiveRecord::Schema.define(version: 20150130041842) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "tags"
t.json "traits"
end
create_table "media_types", force: :cascade do |t|