Sha256: a207245d3bc346cc570f95d0a3fbb97e6f875fcbf424ed46ee139ccfe40bc963
Contents?: true
Size: 524 Bytes
Versions: 4
Compression:
Stored size: 524 Bytes
Contents
class CreateAnswers < ActiveRecord::Migration[4.2] def self.up create_table :answers do |t| t.integer :user_id, :null => false t.integer :question_id, :null => false t.text :body t.timestamps t.datetime :deleted_at t.boolean :shared, :default => true, :null => false t.string :state t.text :item_identifier_list t.text :url_list end add_index :answers, :user_id add_index :answers, :question_id end def self.down drop_table :answers end end
Version data entries
4 entries across 4 versions & 1 rubygems