diff --git a/db/migrate/20120114195316_change_asciicast_duration_to_float.rb b/db/migrate/20120114195316_change_asciicast_duration_to_float.rb new file mode 100644 index 0000000..82b9696 --- /dev/null +++ b/db/migrate/20120114195316_change_asciicast_duration_to_float.rb @@ -0,0 +1,9 @@ +class ChangeAsciicastDurationToFloat < ActiveRecord::Migration + def up + change_column :asciicasts, :duration, :float, :null => false + end + + def down + change_column :asciicasts, :duration, :integer, :null => false + end +end diff --git a/db/schema.rb b/db/schema.rb index 71d03b5..850de5b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,12 +11,12 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111123214033) do +ActiveRecord::Schema.define(:version => 20120114195316) do create_table "asciicasts", :force => true do |t| t.integer "user_id" t.string "title" - t.integer "duration", :null => false + t.float "duration", :null => false t.datetime "recorded_at" t.string "terminal_type" t.integer "terminal_columns", :null => false