Remove unused recorded_at column

openid
Marcin Kulik 11 years ago
parent 9530c9d870
commit 0a47fd441f

@ -8,7 +8,6 @@ class AsciicastParams
attribute :stdin_timing
attribute :username, String
attribute :duration, Float
attribute :recorded_at, DateTime, default: -> (p, a) { DateTime.now }
attribute :title, String
attribute :command, String
attribute :shell, String

@ -0,0 +1,5 @@
class RemoveRecordedAtFromAsciicasts < ActiveRecord::Migration
def change
remove_column :asciicasts, :recorded_at
end
end

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140209133703) do
ActiveRecord::Schema.define(version: 20140210153648) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -30,7 +30,6 @@ ActiveRecord::Schema.define(version: 20140209133703) do
t.integer "user_id"
t.string "title"
t.float "duration", null: false
t.datetime "recorded_at"
t.string "terminal_type"
t.integer "terminal_columns", null: false
t.integer "terminal_lines", null: false
@ -60,7 +59,6 @@ ActiveRecord::Schema.define(version: 20140209133703) do
add_index "asciicasts", ["created_at"], name: "index_asciicasts_on_created_at", using: :btree
add_index "asciicasts", ["featured"], name: "index_asciicasts_on_featured", using: :btree
add_index "asciicasts", ["likes_count"], name: "index_asciicasts_on_likes_count", using: :btree
add_index "asciicasts", ["recorded_at"], name: "index_asciicasts_on_recorded_at", using: :btree
add_index "asciicasts", ["user_id"], name: "index_asciicasts_on_user_id", using: :btree
add_index "asciicasts", ["views_count"], name: "index_asciicasts_on_views_count", using: :btree

@ -10,7 +10,6 @@ FactoryGirl.define do
association :user
title "bashing"
duration 11.146430015563965
recorded_at "2011-11-23 22:06:07"
terminal_type "screen-256color"
terminal_columns 96
terminal_lines 26

@ -26,7 +26,6 @@ describe AsciicastParams do
username: 'kill',
user_id: nil,
duration: 11.146430015563965,
recorded_at: now,
title: 'bashing :)',
command: '/bin/bash',
shell: '/bin/zsh',

Loading…
Cancel
Save