transferred Code Ocean from original repository to GitHub
This commit is contained in:
14
db/migrate/20140812144733_create_files.rb
Normal file
14
db/migrate/20140812144733_create_files.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateFiles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :files do |t|
|
||||
t.text :content
|
||||
t.belongs_to :context, polymorphic: true
|
||||
t.belongs_to :file
|
||||
t.belongs_to :file_type
|
||||
t.boolean :hidden
|
||||
t.string :name
|
||||
t.boolean :read_only
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user