asciinema.org/db/migrate/20111123210607_create_asciicasts.rb
2011-11-23 22:31:00 +01:00

23 lines
567 B
Ruby

class CreateAsciicasts < ActiveRecord::Migration
def change
create_table :asciicasts do |t|
t.integer :user_id
t.string :title
t.integer :duration, :null => false
t.datetime :recorded_at
t.string :terminal_type
t.integer :terminal_columns, :null => false
t.integer :terminal_lines, :null => false
t.string :command
t.string :shell
t.string :uname
t.timestamps
end
add_index :asciicasts, :user_id
add_index :asciicasts, :created_at
add_index :asciicasts, :recorded_at
end
end