asciinema.org/db/migrate/20111123210607_create_asciicasts.rb

23 lines
567 B
Ruby
Raw Normal View History

2011-11-23 21:30:09 +00:00
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