Sha256: 969063a2eed022fef92d07cc22159189f801743490cec2e321da0a29faaab7ea
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
class CreateClipsterClips < ActiveRecord::Migration def up create_table :clipster_clips, :id => false, :primary_key => :id do |t| t.string :id, :null => false, :unique => true t.text :clip, :null => false t.string :language, :null => false, :default => 'text' t.string :title, :null => false, :default => 'Untitled' t.boolean :private, :null => false, :default => false t.integer :user_id t.datetime :expires t.timestamps end end def down drop_table :clipster_clips end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clipster-0.5.2 | db/migrate/20121126185058_create_clipster_clips.rb |
clipster-0.4.1 | db/migrate/20121126185058_create_clipster_clips.rb |