0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-19 16:01:26 +00:00
ensl.org/db/migrate/20171109165433_create_custom_urls.rb

13 lines
260 B
Ruby
Raw Normal View History

class CreateCustomUrls < ActiveRecord::Migration
def change
create_table :custom_urls do |t|
t.string :name
t.references :article
t.timestamps
end
add_index :custom_urls, :name
add_index :custom_urls, :article_id
end
end