18 lines
398 B
Ruby
18 lines
398 B
Ruby
class CreateShixuns < ActiveRecord::Migration
|
|
def change
|
|
create_table :shixuns do |t|
|
|
t.string :name
|
|
t.text :description
|
|
t.text :script
|
|
t.boolean :is_public, :default => 1
|
|
t.integer :parent_id
|
|
t.integer :user_id
|
|
t.integer :gpid
|
|
t.integer :forked_count, :default => 0
|
|
t.integer :visits, :default => 0
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|