Skip to content

Commit

Permalink
videos and courses description type changes happypeter#404
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyyang committed Oct 23, 2013
1 parent 2d39580 commit bae80fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ChangeColumnsFromStringToText < ActiveRecord::Migration
def up
change_column :courses, :description, :text
change_column :videos, :desc, :text
end

def down
end
end
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20131022142315) do
ActiveRecord::Schema.define(:version => 20131023024341) do

create_table "activities", :force => true do |t|
t.string "action"
Expand Down Expand Up @@ -47,7 +47,7 @@

create_table "courses", :force => true do |t|
t.string "name"
t.string "description"
t.text "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "title"
Expand Down Expand Up @@ -124,7 +124,7 @@
t.datetime "updated_at", :null => false
t.integer "course_id"
t.integer "position"
t.string "desc"
t.text "desc"
t.integer "user_id"
t.integer "size"
t.string "filename"
Expand Down

0 comments on commit bae80fc

Please sign in to comment.