change migration of data types

This commit is contained in:
Tyrel Souza 2014-04-25 16:09:03 -04:00
parent 847a81face
commit 5739401cad
3 changed files with 11 additions and 3 deletions

View File

@ -13,6 +13,7 @@
hint: "If the customer has provided a script for BetterVideo to use. Formatting is text only." %> hint: "If the customer has provided a script for BetterVideo to use. Formatting is text only." %>
<%= f.input :notes, <%= f.input :notes,
label: 'Production Notes', label: 'Production Notes',
as: 'text',
hint: "Notes and/or instructions sent in this field are used by the editors to aid in production of the video." %> hint: "Notes and/or instructions sent in this field are used by the editors to aid in production of the video." %>
<%= f.input :asseturls, <%= f.input :asseturls,
label: 'Asset Urls', label: 'Asset Urls',

View File

@ -0,0 +1,7 @@
class ChangeFieldTypesVideolisting < ActiveRecord::Migration
def change
change_column :videolistings, :notes, :text
change_column :videolistings, :clientprovidedscript, :text
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140424185113) do ActiveRecord::Schema.define(version: 20140425200716) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -105,8 +105,8 @@ ActiveRecord::Schema.define(version: 20140424185113) do
t.integer "producttypeid" t.integer "producttypeid"
t.integer "voiceoverselection" t.integer "voiceoverselection"
t.integer "musicselection" t.integer "musicselection"
t.string "clientprovidedscript" t.text "clientprovidedscript"
t.string "notes" t.text "notes"
t.string "asseturls", default: "{}" t.string "asseturls", default: "{}"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"